Skip to content

Commit 08b4723

Browse files
PavelSinelnikPavelSinelnikvyakimchik
authored
Fix/sp 19891 (#232)
* gha. Fix getting head commit after push event * temp gha. Trigger to get push message * Gha. Getting commit message through the EOF * update clients. echo result to output * gha. line to trigger updating clients * gha. return json event * fix synt. add EOF, condition if * gha. Change head message for commit id in gh output. * uncomment. Change title output. Remove tmp returning gh event * Pretty commit/pr message * gha. change trigger branch --------- Co-authored-by: PavelSinelnik <pavel.sinelnik@regula.by> Co-authored-by: Vladislav Yakimchik <31860804+vyakimchik@users.noreply.github.com>
1 parent ad2880c commit 08b4723

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/update-clients.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
if [[ ${{ github.event_name }} == 'workflow_dispatch' ]]; then
2121
echo "fmt_title=${{ github.event.inputs.title }}" >> "$GITHUB_OUTPUT"
2222
else
23-
echo "fmt_title=${{ github.event.head_commit.message }}" >> "$GITHUB_OUTPUT"
23+
echo "fmt_title=${GITHUB_SHA::8}" >> "$GITHUB_OUTPUT"
2424
fi
2525
2626
update-js-client:
@@ -54,7 +54,7 @@ jobs:
5454
git config --local user.email "action@github.com"
5555
git config --local user.name "GitHub Action"
5656
git add --all
57-
git commit -m "${{ needs.title.outputs.title }}" -a
57+
git commit -m "Commit: ${{ needs.title.outputs.title }}" -a
5858
git push --set-upstream origin ${GITHUB_SHA::8}
5959
gh pr create --fill --draft --base develop
6060
env:
@@ -97,7 +97,7 @@ jobs:
9797
git config --local user.email "action@github.com"
9898
git config --local user.name "GitHub Action"
9999
git add --all
100-
git commit -m "${{ needs.title.outputs.title }}" -a
100+
git commit -m "Commit: ${{ needs.title.outputs.title }}" -a
101101
git push --set-upstream origin ${GITHUB_SHA::8}
102102
gh pr create --fill --draft --base develop
103103
env:
@@ -133,7 +133,7 @@ jobs:
133133
git config --local user.email "action@github.com"
134134
git config --local user.name "GitHub Action"
135135
git add --all
136-
git commit -m "${{ needs.title.outputs.title }}" -a
136+
git commit -m "Commit: ${{ needs.title.outputs.title }}" -a
137137
git push --set-upstream origin ${GITHUB_SHA::8}
138138
gh pr create --fill --draft --base develop
139139
env:
@@ -170,7 +170,7 @@ jobs:
170170
git config --local user.name "GitHub Action"
171171
git checkout src/Regula.DocumentReader.WebClient/Api/DefaultApi.cs src/Regula.DocumentReader.WebClient/Api/ProcessApi.cs
172172
git add --all
173-
git commit -m "${{ needs.title.outputs.title }}" -a
173+
git commit -m "Commit: ${{ needs.title.outputs.title }}" -a
174174
git push --set-upstream origin ${GITHUB_SHA::8}
175175
gh pr create --fill --draft --base develop
176176
env:

0 commit comments

Comments
 (0)