fix failure step
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:
Luke R 2025-04-21 13:15:22 -07:00
parent d3e5a73e35
commit 3a697f21ca

View File

@ -69,6 +69,7 @@ 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:
runs-on: ubuntu-latest
needs: [changes, sync-argocd-app]
if: ${{ needs.sync-argocd-app.result == 'success' }}
steps:
@ -78,8 +79,9 @@ jobs:
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
post-failure-to-discord:
runs-on: ubuntu-latest
needs: [changes, sync-argocd-app]
if: ${{ needs.sync-argocd-app.result == 'success' }}
if: ${{ needs.sync-argocd-app.result == 'failure' }}
steps:
- name: Post status of failed run to discord
if: github.event_name != 'pull_request'