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

Fix updating to tags with a branch with same name #5918

Conversation

deivid-rodriguez
Copy link
Contributor

When detecting whether a workflow file is pinned, we were assuming it's not pinned if there's a branch that matches the ref specified in the workflow file.

However, if there's also a tag with the same name, that should probably take priority, since that's what users will expect in this case.

Fixes #5916.

@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/github_actions-handle-dup-branch-and-tag branch 2 times, most recently from 2094522 to bc68355 Compare October 20, 2022 12:39
When detecting whether a workflow file is pinned, we were assuming it's
not pinned if there's a branch that matches the ref specified in the
workflow file.

However, if there's also a tag with the same name, that should probably take
priority, since that's what users will expect in this case.
@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/github_actions-handle-dup-branch-and-tag branch from bc68355 to e1a8c49 Compare October 20, 2022 17:52
@deivid-rodriguez deivid-rodriguez merged commit 0ff6f2e into main Oct 20, 2022
@deivid-rodriguez deivid-rodriguez deleted the deivid-rodriguez/github_actions-handle-dup-branch-and-tag branch October 20, 2022 19:27
@pavera pavera mentioned this pull request Oct 31, 2022
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.

Version update on microsoft/setup-msbuild not detected from 1.0.2 to 1.1.3
2 participants