fixup! [#26] ci: Use correct username when pushing new PRs

This commit is contained in:
Vitaliy Potyarkin 2025-03-13 14:47:59 +03:00
parent a5a9eeca48
commit 04918c5c73

View file

@ -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