From 789983071450d8fffb8a1117124e353526e27fdc Mon Sep 17 00:00:00 2001 From: lakshmimsft Date: Tue, 12 Dec 2023 20:32:17 -0800 Subject: [PATCH] updating condition to specify scheduled run --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index b9b1d50b..4d723234 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -285,7 +285,7 @@ jobs: retention-days: 30 if-no-files-found: error - name: Create GitHub issue on failure - if: failure() && github.event_name != 'pull_request' && github.event_name != 'workflow_dispatch' + if: failure() && github.event_name == 'schedule' run: gh issue create --title "Samples deployment failed for ${{ matrix.app }}" --body "Test failed on ${{ github.repository }}. See [workflow logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for more details." --repo ${{ github.repository }} --label test-failure # Cleanup - name: Delete app