Skip to content

Commit a62a1d9

Browse files
authored
Merge pull request #5264 from jsoref/warn-about-renaming-action-branches
Warn that renaming branches breaks actions
2 parents 2095839 + f1628d7 commit a62a1d9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

content/github/administering-a-repository/renaming-a-branch.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ When you rename a branch on {% data variables.product.product_location %}, any U
1717

1818
Although file URLs are automatically redirected, raw file URLs are not redirected. Also, {% data variables.product.prodname_dotcom %} does not perform any redirects if users perform a `git pull` for the previous branch name.
1919

20+
{% data variables.product.prodname_actions %} workflows do not follow renames, so if your repository publishes an action, anyone using that action with `@{old-branch-name}` will break. You should consider adding a new branch with the original content plus an additional commit reporting that the banch name is deprecated and suggesting that users migrate to the new branch name.
21+
2022
### Renaming a branch
2123

2224
{% data reusables.repositories.navigate-to-repo %}

0 commit comments

Comments
 (0)