fix release-build trigger

This commit is contained in:
Filipe Freire 2023-08-10 10:46:19 +01:00
parent 311908c427
commit c7aa710b94

View File

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