Skip to content

Commit 9b11396

Browse files
committed
Fix, fatal: The current branch release has no upstream branch.
1 parent 9a00a32 commit 9b11396

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/Release.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,15 @@ jobs:
1313

1414
create-git-branch-release:
1515
runs-on: ubuntu-latest
16+
env:
17+
RELEASE_BRANCH: release
1618
outputs:
17-
branch: ${{ steps.release_branch.outputs.value }}
19+
branch: ${{ env.RELEASE_BRANCH }}
1820
steps:
1921
- uses: actions/checkout@v4
2022

2123
- name: Create release branch
22-
env:
23-
RELEASE_BRANCH: release
24-
id: release_branch
25-
run: |
26-
git checkout -B $RELEASE_BRANCH
27-
echo "value=$RELEASE_BRANCH" >> $GITHUB_OUTPUT
24+
run: git checkout -B $RELEASE_BRANCH
2825

2926
- name: Remove submodule (if exists)
3027
env:
@@ -37,11 +34,13 @@ jobs:
3734
git rm -f $SUBMODULE_PATH || true
3835
rm -rf .git/modules/$SUBMODULE_PATH || true
3936
git commit -m "Remove submodule"
40-
git push
4137
else
4238
echo "Submodule not found, skipping removal."
4339
fi
4440
41+
- name: Push release branch
42+
run: git push --force --set-upstream origin $RELEASE_BRANCH
43+
4544
create-github-release:
4645
needs: create-git-branch-release
4746
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)