[#27] ci: Use correct username when pushing new PRs
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
This commit is contained in:
parent
1a38db8a2b
commit
3e96c8d264
1 changed files with 5 additions and 3 deletions
|
@ -8,12 +8,14 @@ jobs:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: make clean_data update
|
- name: Update LOCODE database
|
||||||
- run: |
|
run: make clean_data update
|
||||||
|
- name: Create pull request with new data
|
||||||
|
run: |
|
||||||
git config user.name "Snegurochka"
|
git config user.name "Snegurochka"
|
||||||
git config user.email "snegurochka@frostfs.info"
|
git config user.email "snegurochka@frostfs.info"
|
||||||
git switch -c update-dbs
|
git switch -c update-dbs
|
||||||
git add .
|
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 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
|
git push origin HEAD:refs/for/master -o topic=automatic-database-update
|
||||||
|
|
Loading…
Add table
Reference in a new issue