diff --git a/.gitea/workflows/build-and-push.yaml b/.gitea/workflows/build-and-push.yaml index b929e2a7..9c45a357 100755 --- a/.gitea/workflows/build-and-push.yaml +++ b/.gitea/workflows/build-and-push.yaml @@ -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'