retypeapp/action-github-pages

ensure new branches are created with unique names if the action is re-run

fabriciomurta opened this issue · 1 comments

It seems the branch naming system is stopping at suffix _0 in

retype-663826198_1
retype-663826198_1_0

Instead of going ahead with
retype-663826198_1_1
retype-663826198_1_2

...and so on. Ensure this is working; may require doing artificial changes to the documentation for it to actually have something to push along the branch.

It looks right. The following action was run several times, and incrementing number of branch names were created:

Action: https://github.com/fabriciomurta/ragha-tests/actions/runs/687028252
Branch names created:

  remotes/origin/gh-subpages
  remotes/origin/gh-subpages-687028252_33
  remotes/origin/gh-subpages-687028252_33_0
  remotes/origin/gh-subpages-687028252_33_1
  remotes/origin/gh-subpages-687028252_33_2