Skip to content

Only run the release workflow when piper-cut-cl.json changes#4314

Merged
copybara-service[bot] merged 2 commits intogoogle:masterfrom
lauraharker:releases-action
Apr 24, 2026
Merged

Only run the release workflow when piper-cut-cl.json changes#4314
copybara-service[bot] merged 2 commits intogoogle:masterfrom
lauraharker:releases-action

Conversation

@lauraharker
Copy link
Copy Markdown
Contributor

This should remove no-op workflow runs on other
commits, like https://github.com/google/closure-compiler/actions/runs/24802669504, while still running on "Bump version for compiler release" commits like https://github.com/google/closure-compiler/actions/runs/24790507715.

This should remove no-op workflow runs on other
commits, like https://github.com/google/closure-compiler/actions/runs/24802669504,
while still running on "Bump version for compiler release"
commits like https://github.com/google/closure-compiler/actions/runs/24790507715.
@lauraharker lauraharker self-assigned this Apr 24, 2026
Comment thread .github/workflows/release.yaml Outdated

# This workflow is triggered by pushes to the `master` branch.
# This workflow is triggered by pushes to the `master` branch that modify '.github/piper-cut-cl.json'.
# It first checks if `.github/piper-cut-cl.json` has been modified in the latest push.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I assume we're leaving the check as a ~defense in depth for non-material changes to the file..?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That was my intent, but now that I look at the check, it's not smart enough to distinguish material vs. non-material changes anyway

It just diffs the entire file contents before and after.

I'd imagine we could try and make it smarter but not sure it's worth it, given that I don't think we've seen any problems historically. I just removed the check altogether.

Thanks for pointing this out.

The diff looks for any changes, including whitespace/other-non-
release-related changes, so it's not useful now that we only
trigger the GitHub action on `piper-cut-cl.json` changes.
@copybara-service copybara-service Bot merged commit 5add044 into google:master Apr 24, 2026
4 checks passed
@lauraharker lauraharker deleted the releases-action branch April 24, 2026 20:30
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.

2 participants