Skip to content

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

Merged
deivid-rodriguez merged 1 commit intomainfrom
deivid-rodriguez/github_actions-handle-dup-branch-and-tag
Oct 20, 2022
Merged

Fix updating to tags with a branch with same name#5918
deivid-rodriguez merged 1 commit intomainfrom
deivid-rodriguez/github_actions-handle-dup-branch-and-tag

Conversation

@deivid-rodriguez
Copy link
Copy Markdown
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