From 3a697f21ca0228f92f4e30e600889d70a7085b74 Mon Sep 17 00:00:00 2001 From: Luke R Date: Mon, 21 Apr 2025 13:15:22 -0700 Subject: [PATCH] fix failure step --- .gitea/workflows/build-and-push.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-and-push.yaml b/.gitea/workflows/build-and-push.yaml index 9c45a357..9dd53089 100755 --- a/.gitea/workflows/build-and-push.yaml +++ b/.gitea/workflows/build-and-push.yaml @@ -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'