From f77e2be99aa24965f66a12e0679910c1667e709f Mon Sep 17 00:00:00 2001 From: Max P Date: Fri, 16 Aug 2024 18:06:52 +0200 Subject: [PATCH] Move checkout and cleanup steps in release workflow Reordered steps in the release workflow to checkout the release branch and remove unwanted files before staging changes. This change ensures that the files removed reflect the current state of the release branch, avoiding potential inconsistencies during the release process. --- .github/workflows/CreateRelease.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CreateRelease.yml b/.github/workflows/CreateRelease.yml index ae3afc1..50fe830 100644 --- a/.github/workflows/CreateRelease.yml +++ b/.github/workflows/CreateRelease.yml @@ -94,6 +94,10 @@ jobs: id: create_temp_branch if: steps.check_version.outputs.skip_release == 'false' run: | + # Checkout the release branch + git checkout release + + # Remove unwanted files rm -rf .gitignore package-lock.json # Add new/modified files @@ -102,9 +106,6 @@ jobs: # Commit the changes git commit -m "Prepare files for release ${{ env.VERSION }}" - # Checkout the release branch - git checkout release - # Push the changes to the release branch git push origin release env: