Skip to content

Commit 71d47e7

Browse files
authored
Merge pull request #471 from dblock/skip-on-no-change
Skip updating CHANGELOG and pushing w/o changes.
2 parents fb65305 + b1a18fc commit 71d47e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/update_api.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,15 @@ jobs:
5555
base: master
5656
committer: slack-ruby-ci-bot <[email protected]>
5757
author: slack-ruby-ci-bot <[email protected]>
58-
- uses: jacobtomlinson/gha-find-replace@v3
58+
- name: Update CHANGELOG
59+
uses: jacobtomlinson/gha-find-replace@v3
5960
if: ${{ steps.cpr.outputs.pull-request-number != '' }}
6061
with:
6162
include: CHANGELOG.md
6263
find: "\\* Your contribution here."
6364
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."
6465
- name: Commit and Push
66+
if: ${{ steps.cpr.outputs.pull-request-number != '' }}
6567
run: |
6668
git config --local user.name 'slack-ruby-ci-bot'
6769
git config --local user.email '[email protected]'

0 commit comments

Comments
 (0)