From 7d29f2ec3b7426ec1e90cd4685b6c5b0fb959796 Mon Sep 17 00:00:00 2001 From: "REDMOND\\williamhe" Date: Mon, 8 Jan 2024 18:55:16 -0800 Subject: [PATCH] Update workflow trigger --- .github/workflows/automationTemplate.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/automationTemplate.yaml b/.github/workflows/automationTemplate.yaml index 9ec81afeaa..14a84c2a58 100644 --- a/.github/workflows/automationTemplate.yaml +++ b/.github/workflows/automationTemplate.yaml @@ -61,8 +61,12 @@ jobs: git status git add -A - # Skip further checks if the event is not a push and there are no updates in build/constants.yaml - if [[ "${{ github.event_name }}" != "push" ]] && git diff --quiet --exit-code -- build/constants.yaml; then + # Skip further checks if the event is not a manual trigger. + if [ "${{ github.event_name }}" != "workflow_dispatch" ]; then + echo "Forcing the workflow step because the event was manually ran." + cancelWorkflow=0 + # Check there are no updates in build/constants.yaml + elif git diff --quiet --exit-code -- build/constants.yaml; then echo "No new ${{ inputs.platformName }} SDK versions detected. Canceling workflow..." cancelWorkflow=1 else