Skip to content

Merge branch 'upstream' into master #1

Merge branch 'upstream' into master

Merge branch 'upstream' into master #1

Workflow file for this run

name: Update lilac.yaml docs
on:
push:
branches:
- master
paths:
- schema-docs/lilac-yaml-schema.yaml
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install Python dependencies
run: pip install PyYAML
- name: Set up NodeJS
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Install NodeJS dependencies
run: npm install -g bootprint bootprint-json-schema
- name: Configure git
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
- name: Update docs
run: |
cd schema-docs
make
- name: Commit changes
run: |
cd schema-docs/build/docs
git push
- uses: actions/checkout@v2
with:
repository: archlinuxcn/repo
path: repo
ssh-key: ${{ secrets.REPO_DEPLOY_KEY }}
- name: Update archlinuxcn/repo
run: |
cp schema-docs/lilac-yaml-schema.yaml repo
cd repo
if [[ -n "$(git status -s)" ]]; then
git add lilac-yaml-schema.yaml
git commit -m 'update lilac-yaml-schema.yaml'
git push
fi