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'