We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 548f297 commit 6c40685Copy full SHA for 6c40685
1 file changed
.github/workflows/prepare-release-branch.yml
@@ -26,17 +26,16 @@ jobs:
26
- prereqs
27
steps:
28
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
29
+ with:
30
+ # history is needed to allow fast-forward push below in case
31
+ # re-running this workflow after merging additional PRs to main
32
+ fetch-depth: 0
33
34
- name: Create release branch
35
run: |
36
version=$(.github/scripts/get-version.sh)
37
if [[ $version =~ ^([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
38
release_branch_name="release/v${version}"
- release_branch_exists=$(git ls-remote --heads origin refs/heads/$release_branch_name)
- if [[ $release_branch_exists != "" ]] ; then
- echo "release branch $release_branch_name already exists"
- exit 1
39
- fi
40
else
41
echo "unexpected version: $version"
42
exit 1
0 commit comments