Skip to content

Update

Update #10

Workflow file for this run

name: Update
on:
workflow_dispatch:
workflow_run:
workflows: [ Crawl ]
types: [ completed ]
jobs:
crawl:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
path: main_folder
ref: main
- name: Check out repository
uses: actions/checkout@v4
with:
path: gh_pages_folder
ref: gh-pages
- name: Commit to gh-pages branch
working-directory: ./gh_pages_folder
run: |
cp -f ../main_folder/output/* ./_data/
cp -f ./_data/* ./json/
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add . && git commit -m "Data updated"
git push origin