From c08f11b5288c96612019e65cd77735384f8e630e Mon Sep 17 00:00:00 2001 From: Lakshmi Javadekar <103459615+lakshmimsft@users.noreply.github.com> Date: Wed, 13 Dec 2023 10:09:01 -0800 Subject: [PATCH] updating condition to specify scheduled run (#901) --- .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