Skip to content

Commit ec67f71

Browse files
authored
Merge pull request rails#49008 from zzak/workflows-rubocop-bundle_only
Use zzak/action-discord@v8
2 parents 2c5bfbd + 9218ef7 commit ec67f71

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ jobs:
4848
- run: bin/check-changelogs ./rails
4949
- run: bin/check-config-docs ./rails
5050

51-
- uses: zzak/action-discord@v4
51+
- uses: zzak/action-discord@v8
5252
continue-on-error: true
53-
if: always() && github.ref_name == 'main'
53+
if: failure() && github.ref_name == 'main'
5454
with:
55+
github-token: ${{ secrets.GITHUB_TOKEN }}
5556
webhook: ${{ secrets.DISCORD_WEBHOOK }}

.github/workflows/rails-new-docker.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ jobs:
3434
- name: Test container
3535
run: ruby -r ./.github/workflows/scripts/test-container.rb
3636

37-
- uses: zzak/action-discord@v4
37+
- uses: zzak/action-discord@v8
3838
continue-on-error: true
39-
if: always() && github.ref_name == 'main'
39+
if: failure() && github.ref_name == 'main'
4040
with:
41+
github-token: ${{ secrets.GITHUB_TOKEN }}
4142
webhook: ${{ secrets.DISCORD_WEBHOOK }}

.github/workflows/rubocop.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ jobs:
2323
- name: Run RuboCop
2424
run: bundle exec rubocop --parallel
2525

26-
- uses: zzak/action-discord@v4
26+
- uses: zzak/action-discord@v8
27+
env:
28+
BUNDLE_ONLY: ""
2729
continue-on-error: true
28-
if: always() && github.ref_name == 'main'
30+
if: failure() && github.ref_name == 'main'
2931
with:
32+
github-token: ${{ secrets.GITHUB_TOKEN }}
3033
webhook: ${{ secrets.DISCORD_WEBHOOK }}

0 commit comments

Comments
 (0)