Skip to content

Commit 097b3ca

Browse files
committed
Force push with a GHA.
1 parent 3f21316 commit 097b3ca

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/update_api.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff 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-
64+
- name: Commit and Push
65+
run: |
66+
git config --local user.name 'slack-ruby-ci-bot'
67+
git config --local user.email '[email protected]'
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 ${AUTH}"
72+
git add CHANGELOG.md
73+
git commit --amend --no-edit
74+
git push origin automated-api-update -f

0 commit comments

Comments
 (0)