Skip to content

Commit

Permalink
Update workflow trigger (#2330)
Browse files Browse the repository at this point in the history
  • Loading branch information
william-msft authored Jan 9, 2024
1 parent d8aa4cb commit fcec826
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/automationTemplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fcec826

Please sign in to comment.