From 3e96c8d264eae4251f24ed7d343d59a227c51459 Mon Sep 17 00:00:00 2001 From: Vitaliy Potyarkin Date: Thu, 13 Mar 2025 14:42:10 +0300 Subject: [PATCH] [#27] ci: Use correct username when pushing new PRs Signed-off-by: Vitaliy Potyarkin --- .forgejo/workflows/updatechecker.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/updatechecker.yml b/.forgejo/workflows/updatechecker.yml index be56fd7..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://x-access-token:${{ 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