Skip to content

Commit

Permalink
Merge pull request #716 from pulsar-edit/CI-dont-update-CIRRUS_LAST_G…
Browse files Browse the repository at this point in the history
…REEN_CHANGE-for-skipped-builds

Cirrus: Don't update last good commit if CI skipped

Makes it so Cirrus Rolling doesn't skip, so we actually have
Rolling binaries/releases for ARM Linux + Apple Silicon again!
  • Loading branch information
DeeDeeG authored Sep 14, 2023
2 parents 69038a1 + 152b80e commit 80e830b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -263,3 +263,15 @@ silicon_mac_task:
# path: report.xml
# type: text/xml
# format: junit

silently_mark_skipped_or_no_scheduled_tasks_builds_as_failed_task:
skip_notifications: true
only_if: $CIRRUS_CRON == "" && $CIRRUS_TAG == ""
### !!! ^ Don't forget to update this appropriately if our `only_if:` or `skip:` logic changes for the other tasks! !!! ###
### !!! ^ We want this task to run [only] if all other tasks would have skipped. !!! ###
container:
image: alpine:latest
cpu: 1
clone_script: exit 0 # Shortest possible script that succeeds. Saves time vs actually cloning. Failing here triggers an automatic re-run, so don't do that!
mark_task_as_failed_script: exit 1 # Shortest possible script to mark a build as "failed". This protects CIRRUS_LAST_GREEN_CHANGE from being updated by builds that actually just skipped CI.
timeout_in: 6s

0 comments on commit 80e830b

Please sign in to comment.