From c7aa710b948be63b7d2fa47a91c23d002da77dd3 Mon Sep 17 00:00:00 2001 From: Filipe Freire Date: Thu, 10 Aug 2023 10:46:19 +0100 Subject: [PATCH] fix release-build trigger --- .github/workflows/release-start.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-start.yml b/.github/workflows/release-start.yml index 64cb7a4ec..4ca99d709 100644 --- a/.github/workflows/release-start.yml +++ b/.github/workflows/release-start.yml @@ -54,15 +54,28 @@ jobs: echo "RELEASE_VERSION=$(node -e "console.log(require('./packages/insomnia/package.json').version)")" >> $GITHUB_ENV echo "RELEASE_BRANCH=release/$(node -e "console.log(require('./packages/insomnia/package.json').version)")" >> $GITHUB_ENV + # - name: Git create branch locally # Check out the new branch + # run: git checkout -b ${{ env.RELEASE_BRANCH }} + + - name: Create Branch # Create a branch if it doesn't exist + uses: peterjgrainger/action-create-branch@v2.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + branch: ${{ env.RELEASE_BRANCH }} + + - name: Checkout branch + uses: actions/checkout@v3 + with: + ref: ${{ env.RELEASE_BRANCH }} + persist-credentials: false + - name: Configure Git user id: configure_git_user uses: Homebrew/actions/git-user-config@master with: username: ${{ (github.event_name == 'workflow_dispatch' && github.actor) || 'insomnia-infra' }} - - name: Git create branch locally # Check out the new branch - run: git checkout -b ${{ env.RELEASE_BRANCH }} - - name: Git Commit run: git commit -am "Bump app version to ${{ env.RELEASE_VERSION }}"