Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workflow trigger #2330

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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