mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
fix release-build trigger
This commit is contained in:
parent
311908c427
commit
c7aa710b94
19
.github/workflows/release-start.yml
vendored
19
.github/workflows/release-start.yml
vendored
@ -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 }}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user