diff --git a/.github/actions/github-actions/release-action/action.yml b/.github/actions/github-actions/release-action/action.yml index 4d07ae2..b421f55 100644 --- a/.github/actions/github-actions/release-action/action.yml +++ b/.github/actions/github-actions/release-action/action.yml @@ -120,7 +120,7 @@ runs: action_path: action.action, version: action.version, release_type: releaseType, - branch_name: `${action.version}-${releaseType}-${action.action.replace('/', '-').replace('\\', '-')}` + branch_name: action.action == '.' ? `${action.version}-${releaseType}-${context.repo.repo}` : `${action.version}-${releaseType}-${action.action.replace('/', '-').replace('\\', '-')}` }; }); @@ -141,7 +141,7 @@ runs: git checkout ${{ inputs.base_branch }} git pull git checkout -b $version - git push -u origin $version + git push -u origin "refs/heads/$version" else echo "Version branch $version exists remotely, checking out" git checkout $version diff --git a/README.md b/README.md index 0a0a469..54eb6c3 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ At UPSIDER, we have a few internal repositories set up with a monorepo structure We are looking to add a few more features, such as extra signoff from non-coder, label based check, etc. -NOTE: +NOTES: (\*1) There are some other hacks, such as using an empty job with the same name to override the status, but those solutions do not provide the flexible control we are after.