mirror of https://github.com/rails/rails
Use zzak/action-discord@v8
* Removed 'fixed/still failing' modes * Only runs when failure() step * Include GITHUB_TOKEN to prevent rate-limits * Need to reset BUNDLE_ONLY on rubocop job
This commit is contained in:
parent
36ebb6ba2d
commit
9218ef7c65
|
@ -48,8 +48,9 @@ jobs:
|
|||
- run: bin/check-changelogs ./rails
|
||||
- run: bin/check-config-docs ./rails
|
||||
|
||||
- uses: zzak/action-discord@v4
|
||||
- uses: zzak/action-discord@v8
|
||||
continue-on-error: true
|
||||
if: always() && github.ref_name == 'main'
|
||||
if: failure() && github.ref_name == 'main'
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
|
|
|
@ -34,8 +34,9 @@ jobs:
|
|||
- name: Test container
|
||||
run: ruby -r ./.github/workflows/scripts/test-container.rb
|
||||
|
||||
- uses: zzak/action-discord@v4
|
||||
- uses: zzak/action-discord@v8
|
||||
continue-on-error: true
|
||||
if: always() && github.ref_name == 'main'
|
||||
if: failure() && github.ref_name == 'main'
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
|
|
|
@ -23,8 +23,11 @@ jobs:
|
|||
- name: Run RuboCop
|
||||
run: bundle exec rubocop --parallel
|
||||
|
||||
- uses: zzak/action-discord@v4
|
||||
- uses: zzak/action-discord@v8
|
||||
env:
|
||||
BUNDLE_ONLY: ""
|
||||
continue-on-error: true
|
||||
if: always() && github.ref_name == 'main'
|
||||
if: failure() && github.ref_name == 'main'
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
|
|
Loading…
Reference in New Issue