Notify discord when workflows fail on main

This commit is contained in:
zzak 2023-03-12 08:06:42 +09:00
parent 58597c1051
commit e4181b33ae
No known key found for this signature in database
GPG Key ID: 213927DFCF4FF102
3 changed files with 27 additions and 0 deletions

View File

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

View File

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

View File

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