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