on: schedule: - cron: "2 0 1 * *" jobs: checkupdates: runs-on: docker steps: - uses: https://code.forgejo.org/actions/checkout@v3 - run: make update - run: | git config user.name "Snegurochka" git config user.email "snegurochka@frostfs.info" git switch -c update-dbs git add . git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@git.frostfs.info/TrueCloudLab/frostfs-locode-db git commit -m "Automatic database update (UN/LOCODE version $(cat tmp/locode-version.txt))" && \ git push origin HEAD:refs/for/master -o topic=automatic-database-update