diff --git a/.gitea/workflows/haven-notify.yaml b/.gitea/workflows/haven-notify.yaml index 6908b89..a109d2f 100644 --- a/.gitea/workflows/haven-notify.yaml +++ b/.gitea/workflows/haven-notify.yaml @@ -73,7 +73,7 @@ jobs: name: Build Haven Notify Image runs-on: runner-slim needs: test - if: ${{ gitea.event_name != 'pull_request' }} + if: ${{ (gitea.event_name == 'push' || gitea.event_name == 'workflow_dispatch') && gitea.ref == 'refs/heads/main' }} steps: - name: Check out repository uses: actions/checkout@v4 @@ -102,6 +102,7 @@ jobs: name: Deploy Haven Notify (internal) runs-on: runner-slim needs: build + if: ${{ (gitea.event_name == 'push' || gitea.event_name == 'workflow_dispatch') && gitea.ref == 'refs/heads/main' }} steps: - name: Rollout Restart Haven Notify uses: https://git.ivanch.me/ivanch/pipeline-actions/deploy-restart@main