Skip to content

Commit 2f3b134

Browse files
BAStos5256r1d
authored andcommitted
[ci] #3849: Fix stable/lts configs pushing job (#3894)
Signed-off-by: BAStos525 <jungle.vas@yandex.ru>
1 parent 4b3f66b commit 2f3b134

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/iroha2-release.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,23 @@ jobs:
5959
runs-on: ubuntu-latest
6060
container:
6161
image: hyperledger/iroha2-ci:nightly-2023-06-25
62+
permissions:
63+
contents: write
6264
steps:
6365
- uses: actions/checkout@v3
6466
with:
6567
ref: iroha2-dev
66-
- name: Setup git config
67-
run: |
68-
cd .git
69-
git config --local user.name "sorabot"
70-
git config --local user.email "<>"
68+
token: ${{ secrets.G_ACCESS_TOKEN }}
7169
- name: Update configs
7270
run: |
7371
./scripts/update_configs.sh lts
7472
./scripts/update_configs.sh stable
7573
- name: Commit config changes
76-
run: |
77-
git config --global --add safe.directory /__w/iroha/iroha
78-
git add -A
79-
git diff-index --quiet HEAD || git commit -m "[documentation]: Update lts/stable configs following a release" --signoff
80-
git push origin iroha2-dev
74+
uses: stefanzweifel/git-auto-commit-action@v4
75+
with:
76+
commit_message: '[documentation]: Update lts/stable configs following a release'
77+
branch: iroha2-dev
78+
commit_options: '--signoff'
79+
commit_user_name: sorabot
80+
commit_user_email: <>
81+
commit_author: sorabot <actions@github.com>

0 commit comments

Comments
 (0)