Skip to content

actions/no-channel-pr: re run when base branch is updated#369179

Merged
infinisil merged 1 commit intoNixOS:masterfrom
JohnRTitor:fix-channel-check-actionb
Jan 3, 2025
Merged

actions/no-channel-pr: re run when base branch is updated#369179
infinisil merged 1 commit intoNixOS:masterfrom
JohnRTitor:fix-channel-check-actionb

Conversation

@JohnRTitor
Copy link
Member

Additionally, no permissions are needed so set it to an empty set
Signed-off-by: John Titor [email protected]

Fixes a bug with this action reported in #355847 (comment)

Additionally, no permissions are needed so set it to an empty set
Signed-off-by: John Titor <[email protected]>
@github-actions github-actions bot added 6.topic: policy discussion Discuss policies to work in and around Nixpkgs 6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions labels Dec 29, 2024
@FliegendeWurst
Copy link
Member

I am not sure this will work. Wouldn't it just re-run the action and fail again?

@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Dec 29, 2024
@FliegendeWurst
Copy link
Member

In #369170, I tried adding some conditionals around github.base_ref - but it didn't really work since the value appears to be cached.

@JohnRTitor
Copy link
Member Author

JohnRTitor commented Dec 29, 2024

Nope, A manual re run is where some things are cached. This is an automatic re run, just like when actions are ran on a force push.

@FliegendeWurst
Copy link
Member

FliegendeWurst commented Dec 29, 2024

So, Github will:

  1. trigger the "edited" event
  2. notice the workflow no longer applies
  3. remove the previous failing workflow from the overview

In that case it should work. I am not familiar enough with GHA to say whether these steps are accurate however.

@JohnRTitor
Copy link
Member Author

Yep, on edited action it will restart the workflow on an entirely new set of variables, which is not the same as restarting a failed job.

@JohnRTitor
Copy link
Member Author

@ofborg eval

Copy link
Member

@infinisil infinisil left a comment

Choose a reason for hiding this comment

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

💯

@infinisil infinisil merged commit 0ac1641 into NixOS:master Jan 3, 2025
21 checks passed
@JohnRTitor JohnRTitor deleted the fix-channel-check-actionb branch January 7, 2025 08:37
@wolfgangwalther
Copy link
Contributor

Backported in #370709.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions 6.topic: policy discussion Discuss policies to work in and around Nixpkgs 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants