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:
zzak 2023-08-23 10:01:10 +09:00
parent 36ebb6ba2d
commit 9218ef7c65
No known key found for this signature in database
GPG Key ID: 213927DFCF4FF102
3 changed files with 11 additions and 6 deletions

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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 }}