mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-03 18:28:13 +01:00
Fix Version Bump Workflow (#2765)
This commit is contained in:
parent
f2c47999a0
commit
4e7faeda04
13
.github/workflows/version-bump.yml
vendored
13
.github/workflows/version-bump.yml
vendored
@ -30,17 +30,20 @@ jobs:
|
||||
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
|
||||
|
||||
- name: Create Version Branch
|
||||
id: branch
|
||||
env:
|
||||
CLIENT_NAME: ${{ github.event.inputs.client }}
|
||||
run: |
|
||||
echo "CLIENT=${CLIENT_NAME,,}" >> ${GITHUB_ENV}
|
||||
git switch -c $CLIENT_version_bump_${{ github.event.inputs.version_number }}
|
||||
git push -u origin $CLIENT_version_bump_${{ github.event.inputs.version_number }}
|
||||
CLIENT=$(python -c "print('$CLIENT_NAME'.lower())")
|
||||
echo "::set-output name=client::$CLIENT"
|
||||
|
||||
git switch -c ${CLIENT}_version_bump_${{ github.event.inputs.version_number }}
|
||||
git push -u origin ${CLIENT}_version_bump_${{ github.event.inputs.version_number }}
|
||||
|
||||
- name: Checkout Version Branch
|
||||
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
|
||||
with:
|
||||
ref: ${{ env.CLIENT }}_version_bump_${{ github.event.inputs.version_number }}
|
||||
ref: ${{ steps.branch.outputs.client }}_version_bump_${{ github.event.inputs.version_number }}
|
||||
|
||||
########################
|
||||
# VERSION BUMP SECTION #
|
||||
@ -111,7 +114,7 @@ jobs:
|
||||
|
||||
- name: Create Bump Version PR
|
||||
env:
|
||||
PR_BRANCH: "${{ env.CLIENT }}_version_bump_${{ github.event.inputs.version_number }}"
|
||||
PR_BRANCH: "${{ steps.branch.outputs.client }}_version_bump_${{ github.event.inputs.version_number }}"
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
BASE_BRANCH: master
|
||||
TITLE: "Bump ${{ github.event.inputs.client }} version to ${{ github.event.inputs.version_number }}"
|
||||
|
Loading…
Reference in New Issue
Block a user