diff --git a/.github/workflows/update_api.yml b/.github/workflows/update_api.yml index d3c46aa7..563e4283 100644 --- a/.github/workflows/update_api.yml +++ b/.github/workflows/update_api.yml @@ -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: noreply@github.com + - name: Commit and Push + run: | + git config --local user.name 'slack-ruby-ci-bot' + git config --local user.email 'noreply@github.com' + 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 x-access-token:${AUTH}" + git add CHANGELOG.md + git commit --amend --no-edit + git push origin automated-api-update -f