Skip to content

Commit

Permalink
Force push with a GHA.
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock committed Apr 30, 2023
1 parent 3f21316 commit 097b3ca
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/update_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,14 @@ jobs:
include: CHANGELOG.md
find: "\\* Your contribution here."
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."
- name: push
uses: dblock/commit@edcd15e90878df73c18a5bbdcd5755f10be8baa0
with:
github-token: ${{ steps.github_app_token.outputs.token }}
push-branch: 'automated-api-update'
commit-message: Update API from slack-api-ref@${{ steps.api-ref.outputs.api-ref }} (${{ steps.date.outputs.date }})
commit-amend: true
force-add: true
force-push: true
files: CHANGELOG.md
name: slack-ruby-ci-bot
email: [email protected]
- name: Commit and Push
run: |
git config --local user.name 'slack-ruby-ci-bot'
git config --local user.email '[email protected]'
git config --local --unset-all http.https://github.com/.extraheader || true
AUTH=$(echo -n "x-access-token:${{ steps.github_app_token.outputs.token || secrets.GITHUB_TOKEN }}" | base64)
echo "::add-mask::${AUTH}"
git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic ${AUTH}"
git add CHANGELOG.md
git commit --amend --no-edit
git push origin automated-api-update -f

0 comments on commit 097b3ca

Please sign in to comment.