trigger failure if it does not sync to argocd
All checks were successful
Build and push / changes (push) Successful in 3s
Build and push / Lint-Python (push) Has been skipped
Build and push / Build-and-Push-Docker (push) Has been skipped
Build and push / sync-argocd-app (push) Has been skipped
Build and push / post-success-to-discord (push) Has been skipped
Build and push / post-failure-to-discord (push) Has been skipped
All checks were successful
Build and push / changes (push) Successful in 3s
Build and push / Lint-Python (push) Has been skipped
Build and push / Build-and-Push-Docker (push) Has been skipped
Build and push / sync-argocd-app (push) Has been skipped
Build and push / post-success-to-discord (push) Has been skipped
Build and push / post-failure-to-discord (push) Has been skipped
This commit is contained in:
parent
e2729c63f7
commit
5adef5cbd2
@ -69,8 +69,8 @@ jobs:
|
||||
command: app
|
||||
options: --insecure --server 192.168.1.205 --auth-token ${{ secrets.ARGOCD_TOKEN }} set dragon-bot --helm-set image.tag=${{ gitea.run_id }}
|
||||
post-success-to-discord:
|
||||
needs: [changes, Build-and-Push-Docker]
|
||||
if: ${{ needs.Build-and-Push-Docker.result == 'success' }}
|
||||
needs: [changes, sync-argocd-app]
|
||||
if: ${{ needs.sync-argocd-app.result == 'success' }}
|
||||
steps:
|
||||
- name: Post status of successful run to discord
|
||||
if: github.event_name != 'pull_request'
|
||||
@ -78,7 +78,8 @@ jobs:
|
||||
with:
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
post-failure-to-discord:
|
||||
if: ${{ needs.Build-and-Push-Docker.result == 'failure' }}
|
||||
needs: [changes, sync-argocd-app]
|
||||
if: ${{ needs.sync-argocd-app.result == 'success' }}
|
||||
steps:
|
||||
- name: Post status of failed run to discord
|
||||
if: github.event_name != 'pull_request'
|
||||
|
Loading…
x
Reference in New Issue
Block a user