Skip to content

fix: Add post-if !cancelled() condition#128

Merged
p0deje merged 1 commit intobazel-contrib:mainfrom
vorburger:patch-2
Jan 11, 2026
Merged

fix: Add post-if !cancelled() condition#128
p0deje merged 1 commit intobazel-contrib:mainfrom
vorburger:patch-2

Conversation

@vorburger
Copy link
Contributor

See #121.

I have NOT tested that this actually works! Mostly because I'm not entirely sure how I would really test it... change the action in my project to use my fork, and cancel the build to see if this does the trick? Could do, but... @p0deje do you think there is any risk to just adding this without really testing it?

Copilot AI review requested due to automatic review settings January 8, 2026 19:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a post-if condition to prevent the post-cleanup action from running when a workflow is cancelled. This addresses issue #121 and aligns with the repository's CI configuration which uses cancel-in-progress: true.

Key Changes:

  • Adds post-if: "!cancelled()" condition to action.yml to skip cache saving when workflows are cancelled

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@p0deje
Copy link
Member

p0deje commented Jan 8, 2026

@vorburger You can point your CI configuration to use vorburger/setup-bazel@patch-2 and test cancelling the job.

@p0deje p0deje merged commit b607b8f into bazel-contrib:main Jan 11, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants