Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/build-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,19 @@ jobs:

- name: Upload artifacts
uses: ./.github/actions/upload-artifacts

NotifyFailure:
needs: [build]
runs-on: ubuntu-latest
if: ${{ failure() }}
steps:
- id: text
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: echo "out=${{ github.workflow }}:\t<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }}>\\n $(gh api /repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs | jq -c '.jobs | .[] | select( .conclusion | contains("failure"))' | jq -r '"- <\(.html_url)|\(.name)>\\n"' | tr '\n' ' ')" >> $GITHUB_OUTPUT

- name: Webhook
uses: joelwmale/webhook-action@master
with:
url: ${{ secrets.WEBHOOK_URL }}
body: '{"text": "${{ steps.text.outputs.out }}"}'
16 changes: 16 additions & 0 deletions .github/workflows/build-test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -296,3 +296,19 @@ jobs:
with:
PINATA_HASH: '${{ needs.deploy.outputs.pinata_hash }}'
secrets: inherit

NotifyFailure:
needs: [update_domains_no_cypress,update_domains,cypress_app_functionality,cypress_additional_v3,cypress_additional_v2,cypress_full_v3,cypress_full_v2,deploy,next_js_analyze,cypress_smoke_v3,cypress_smoke_v2,build_staging,build]
runs-on: ubuntu-latest
if: ${{ failure() }}
steps:
- id: text
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: echo "out=${{ github.workflow }}:\t<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }}>\\n $(gh api /repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs | jq -c '.jobs | .[] | select( .conclusion | contains("failure"))' | jq -r '"- <\(.html_url)|\(.name)>\\n"' | tr '\n' ' ')" >> $GITHUB_OUTPUT

- name: Webhook
uses: joelwmale/webhook-action@master
with:
url: ${{ secrets.WEBHOOK_URL }}
body: '{"text": "${{ steps.text.outputs.out }}"}'
16 changes: 16 additions & 0 deletions .github/workflows/crowdin-download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,19 @@ jobs:
git push
exit
fi

NotifyFailure:
needs: [download-from-crowdin]
runs-on: ubuntu-latest
if: ${{ failure() }}
steps:
- id: text
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: echo "out=${{ github.workflow }}:\t<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }}>\\n $(gh api /repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs | jq -c '.jobs | .[] | select( .conclusion | contains("failure"))' | jq -r '"- <\(.html_url)|\(.name)>\\n"' | tr '\n' ' ')" >> $GITHUB_OUTPUT

- name: Webhook
uses: joelwmale/webhook-action@master
with:
url: ${{ secrets.WEBHOOK_URL }}
body: '{"text": "${{ steps.text.outputs.out }}"}'
16 changes: 16 additions & 0 deletions .github/workflows/crowdin-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,19 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_TOKEN }}

NotifyFailure:
needs: [upload-to-crowdin]
runs-on: ubuntu-latest
if: ${{ failure() }}
steps:
- id: text
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: echo "out=${{ github.workflow }}:\t<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }}>\\n $(gh api /repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs | jq -c '.jobs | .[] | select( .conclusion | contains("failure"))' | jq -r '"- <\(.html_url)|\(.name)>\\n"' | tr '\n' ' ')" >> $GITHUB_OUTPUT

- name: Webhook
uses: joelwmale/webhook-action@master
with:
url: ${{ secrets.WEBHOOK_URL }}
body: '{"text": "${{ steps.text.outputs.out }}"}'
16 changes: 16 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,19 @@ jobs:
uses: actions/checkout@v3
- name: 'Dependency Review'
uses: actions/dependency-review-action@v2

NotifyFailure:
needs: [dependency-review]
runs-on: ubuntu-latest
if: ${{ failure() }}
steps:
- id: text
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: echo "out=${{ github.workflow }}:\t<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }}>\\n $(gh api /repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs | jq -c '.jobs | .[] | select( .conclusion | contains("failure"))' | jq -r '"- <\(.html_url)|\(.name)>\\n"' | tr '\n' ' ')" >> $GITHUB_OUTPUT

- name: Webhook
uses: joelwmale/webhook-action@master
with:
url: ${{ secrets.WEBHOOK_URL }}
body: '{"text": "${{ steps.text.outputs.out }}"}'
16 changes: 16 additions & 0 deletions .github/workflows/i18n-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,19 @@ jobs:
exit 1
exit
fi

NotifyFailure:
needs: [i18n-check]
runs-on: [self-hosted]
if: ${{ failure() }}
steps:
- id: text
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: echo "out=${{ github.workflow }}:\t<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }}>\\n $(gh api /repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs | jq -c '.jobs | .[] | select( .conclusion | contains("failure"))' | jq -r '"- <\(.html_url)|\(.name)>\\n"' | tr '\n' ' ')" >> $GITHUB_OUTPUT

- name: Webhook
uses: joelwmale/webhook-action@master
with:
url: ${{ secrets.WEBHOOK_URL }}
body: '{"text": "${{ steps.text.outputs.out }}"}'
16 changes: 16 additions & 0 deletions .github/workflows/test-deploy-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -308,3 +308,19 @@ jobs:
SUCCESS: 'true'
PULL_REQUEST_NUMBER: ${{ env.PR_NUMBER }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}

NotifyFailure:
needs: [cypress_app_functionality,cypress_additional_v3,cypress_additional_v2,cypress_full_v3,cypress_full_v2,deploy_fork,cypress_smoke_v3,cypress_smoke_v2,next_js_analyze,prepare_jobs]
runs-on: ubuntu-latest
if: ${{ failure() }}
steps:
- id: text
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: echo "out=${{ github.workflow }}:\t<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }}>\\n $(gh api /repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs | jq -c '.jobs | .[] | select( .conclusion | contains("failure"))' | jq -r '"- <\(.html_url)|\(.name)>\\n"' | tr '\n' ' ')" >> $GITHUB_OUTPUT

- name: Webhook
uses: joelwmale/webhook-action@master
with:
url: ${{ secrets.WEBHOOK_URL }}
body: '{"text": "${{ steps.text.outputs.out }}"}'
16 changes: 16 additions & 0 deletions .github/workflows/update-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,19 @@ jobs:
git push
exit
fi

NotifyFailure:
needs: [cache-refresh]
runs-on: ubuntu-latest
if: ${{ failure() }}
steps:
- id: text
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: echo "out=${{ github.workflow }}:\t<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }}>\\n $(gh api /repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs | jq -c '.jobs | .[] | select( .conclusion | contains("failure"))' | jq -r '"- <\(.html_url)|\(.name)>\\n"' | tr '\n' ' ')" >> $GITHUB_OUTPUT

- name: Webhook
uses: joelwmale/webhook-action@master
with:
url: ${{ secrets.WEBHOOK_URL }}
body: '{"text": "${{ steps.text.outputs.out }}"}'
16 changes: 16 additions & 0 deletions .github/workflows/update-prod-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,19 @@ jobs:
CF_ZONE_ID: '${{ secrets.CF_ZONE_ID }}'
HASH: '${{ steps.pinata.outputs.hash }}'
CF_DEPLOYMENT_DOMAIN: staging.aave.com

NotifyFailure:
needs: [staging,production]
runs-on: ubuntu-latest
if: ${{ failure() }}
steps:
- id: text
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: echo "out=${{ github.workflow }}:\t<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }}>\\n $(gh api /repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs | jq -c '.jobs | .[] | select( .conclusion | contains("failure"))' | jq -r '"- <\(.html_url)|\(.name)>\\n"' | tr '\n' ' ')" >> $GITHUB_OUTPUT

- name: Webhook
uses: joelwmale/webhook-action@master
with:
url: ${{ secrets.WEBHOOK_URL }}
body: '{"text": "${{ steps.text.outputs.out }}"}'