mirror of https://github.com/rails/rails
Notify discord when workflows fail on main
This commit is contained in:
parent
58597c1051
commit
e4181b33ae
|
@ -32,3 +32,12 @@ jobs:
|
|||
-p 3000:3000 $APP_NAME &
|
||||
- name: Test container
|
||||
run: ruby -r ./.github/workflows/scripts/test-container.rb
|
||||
|
||||
notify:
|
||||
runs-on: ubuntu-latest
|
||||
if: always() && github.ref_name == 'main'
|
||||
needs: build-and-test-dev-image
|
||||
steps:
|
||||
- uses: zzak/action-discord@v4
|
||||
with:
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
|
|
|
@ -41,3 +41,12 @@ jobs:
|
|||
pip install codespell==2.1.0
|
||||
- name: Check spelling with codespell
|
||||
run: codespell --ignore-words=codespell.txt --skip="./actionview/test/ujs/public/vendor/qunit.js" || exit 1
|
||||
|
||||
notify:
|
||||
runs-on: ubuntu-latest
|
||||
if: always() && github.ref_name == 'main'
|
||||
needs: [rails-bin, codespell]
|
||||
steps:
|
||||
- uses: zzak/action-discord@v4
|
||||
with:
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
|
|
|
@ -22,3 +22,12 @@ jobs:
|
|||
|
||||
- name: Run RuboCop
|
||||
run: bundle exec rubocop --parallel
|
||||
|
||||
notify:
|
||||
runs-on: ubuntu-latest
|
||||
if: always() && github.ref_name == 'main'
|
||||
needs: build
|
||||
steps:
|
||||
- uses: zzak/action-discord@v4
|
||||
with:
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
|
|
Loading…
Reference in New Issue