File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed
Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -61,15 +61,14 @@ jobs:
6161 include : CHANGELOG.md
6262 find : " \\ * Your contribution here."
6363 replace : " * [#${{steps.cpr.outputs.pull-request-number}}](https://github.com/slack-ruby-client/pulls/${{steps.cpr.outputs.pull-request-number}}): Update API from [slack-api-ref@${{ steps.api-ref.outputs.api-ref }}](https://github.com/slack-ruby/slack-api-ref/commit/${{ steps.api-ref.outputs.api-ref }}) - [@slack-ruby-ci-bot](https://github.com/apps/slack-ruby-ci-bot).\n * Your contribution here."
64- - name : push
65- uses : dblock/commit@edcd15e90878df73c18a5bbdcd5755f10be8baa0
66- with :
67- github-token : ${{ steps.github_app_token.outputs.token }}
68- push-branch : ' automated-api-update'
69- commit-message : Update API from slack-api-ref@${{ steps.api-ref.outputs.api-ref }} (${{ steps.date.outputs.date }})
70- commit-amend : true
71- force-add : true
72- force-push : true
73- files : CHANGELOG.md
74- name : slack-ruby-ci-bot
75- email : noreply@github.com
64+ - name : Commit and Push
65+ run : |
66+ git config --local user.name 'slack-ruby-ci-bot'
67+ git config --local user.email 'noreply@github.com'
68+ git config --local --unset-all http.https://github.com/.extraheader || true
69+ AUTH=$(echo -n "x-access-token:${{ steps.github_app_token.outputs.token || secrets.GITHUB_TOKEN }}" | base64)
70+ echo "::add-mask::${AUTH}"
71+ git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic x-access-token:${AUTH}"
72+ git add CHANGELOG.md
73+ git commit --amend --no-edit
74+ git push origin automated-api-update -f
You can’t perform that action at this time.
0 commit comments