diff --git a/.forgejo/workflows/updatechecker.yml b/.forgejo/workflows/updatechecker.yml index a40ca79..70ad82a 100644 --- a/.forgejo/workflows/updatechecker.yml +++ b/.forgejo/workflows/updatechecker.yml @@ -8,12 +8,14 @@ jobs: runs-on: docker steps: - uses: actions/checkout@v3 - - run: make clean_data update - - run: | + - name: Update LOCODE database + run: make clean_data update + - name: Create pull request with new data + 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://${{ env.GITHUB_ACTOR }}:${{ secrets.GITHUB_TOKEN }}@git.frostfs.info/TrueCloudLab/frostfs-locode-db + git remote set-url origin https://snegurochka:${{ secrets.PULL_REQUEST_TOKEN }}@git.frostfs.info/TrueCloudLab/frostfs-locode-db git commit -sm "Automatic database update (UN/LOCODE version $(cat tmp/locode-version.txt))" && \ git push origin HEAD:refs/for/master -o topic=automatic-database-update