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 }}"