Update data backup #134
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update data backup | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 3 * * Mon' | |
env: | |
DATA_REPO_TOKEN: ${{ secrets.DATA_REPO_TOKEN }} | |
jobs: | |
update-data: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v2 | |
- name: Run update scripts | |
uses: ./.github/actions/in-container | |
with: | |
use_dev_image: true | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Action" | |
script/restore-dev-data | |
script/update | |
script/backup-dev-data |