From 6581ef6058eff9a7536a18c7c783319022759aaf Mon Sep 17 00:00:00 2001 From: Max P Date: Fri, 16 Aug 2024 17:51:54 +0200 Subject: [PATCH] Enhance release branch handling Streamlined the branch checkout process by switching to `release --no-checkout` and added the push operation to the release branch. This improves the workflow efficiency and ensures the release branch is updated consistently. --- .github/workflows/CreateRelease.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CreateRelease.yml b/.github/workflows/CreateRelease.yml index 4db6056..3d64bae 100644 --- a/.github/workflows/CreateRelease.yml +++ b/.github/workflows/CreateRelease.yml @@ -94,11 +94,12 @@ jobs: id: create_temp_branch if: steps.check_version.outputs.skip_release == 'false' run: | - git checkout --orphan release/v${{ env.VERSION }} + git checkout release --no-checkout git reset rm -f .gitignore git add README.md package.json LICENSE dist/ src/ tsconfig.json git commit -m "Prepare files for release ${{ env.VERSION }}" + git push origin release shell: bash - name: Create and push tag