|
1 | | -name: Update API from slack-api-ref |
| 1 | +name: Update API |
2 | 2 | on: |
3 | 3 | workflow_dispatch: |
4 | 4 | schedule: |
@@ -55,24 +55,21 @@ jobs: |
55 | 55 | base: master |
56 | 56 | committer: slack-ruby-ci-bot <noreply@github.com> |
57 | 57 | author: slack-ruby-ci-bot <noreply@github.com> |
58 | | - - name: Fetch pull request |
59 | | - if: ${{ steps.cpr.outputs.pull-request-number != '' }} |
60 | | - run: | |
61 | | - git config user.name slack-ruby-ci-bot |
62 | | - git config user.email noreply@github.com |
63 | | - git pull |
64 | | - git checkout automated-api-update |
65 | 58 | - uses: jacobtomlinson/gha-find-replace@v3 |
66 | 59 | if: ${{ steps.cpr.outputs.pull-request-number != '' }} |
67 | 60 | with: |
68 | 61 | include: CHANGELOG.md |
69 | 62 | find: "\\* Your contribution here." |
70 | 63 | 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." |
71 | | - - name: Update pull request |
72 | | - env: |
73 | | - GITHUB_TOKEN: ${{ steps.github_app_token.outputs.token || secrets.GITHUB_TOKEN }} |
74 | | - if: ${{ steps.cpr.outputs.pull-request-number != '' }} |
75 | | - run: | |
76 | | - git add CHANGELOG.md |
77 | | - git commit --amend --no-edit |
78 | | - git push origin automated-api-update -f |
| 64 | + - name: push |
| 65 | + uses: dblock/commit@edcd15e90878df73c18a5bbdcd5755f10be8baa0 |
| 66 | + with: |
| 67 | + github-token: ${{ steps.github_app_token.outputs.token || secrets.GITHUB_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 |
0 commit comments