Skip to content

Commit

Permalink
Update bump-version.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert authored Feb 11, 2024
1 parent fb405e2 commit f936db4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ on:

jobs:
build:
needs: prep
if: ${{ github.event.inputs.versionType == 'build' }}
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -78,7 +77,6 @@ jobs:
git push --set-upstream origin "${{ env.newBranch }}"
gh pr create --title "Bump ${{ github.event.inputs.targetBranch }} branch to ${{ env.newVersion }}" --body "Bump version to prep for next release." --label ignore-changelog --base ${{ env.targetBranch }}
minor:
needs: prep
if: ${{ github.event.inputs.versionType == 'minor' }}
runs-on: ubuntu-latest
steps:
Expand All @@ -94,7 +92,7 @@ jobs:
run: echo "targetBranch=${{ github.event.inputs.targetBranch }}" >> $GITHUB_ENV
- name: Update targetBranch with actual bugfix branch name
if: github.event.inputs.targetBranch == 'bugfix'
run: echo "targetBranch=${{ needs.prep.outputs.bugBranch }}" >> $GITHUB_ENV
run: echo "targetBranch=$(git branch --list *.*.z)" >> $GITHUB_ENV
# Save old version
- name: Find and save old major_version from manifest
run: awk 'BEGIN { FS="=" } /^major_version/ { print "oldMajor="$2; }' manifest >> $GITHUB_ENV
Expand Down Expand Up @@ -138,7 +136,6 @@ jobs:
gh pr create --title "Bump ${{ github.event.inputs.targetBranch }} branch to ${{ env.newVersion }}" --body "Bump version to prep for next release." --label ignore-changelog --base ${{ env.targetBranch }}
major:
needs: prep
if: ${{ github.event.inputs.versionType == 'major' }}
runs-on: ubuntu-latest
steps:
Expand All @@ -154,7 +151,7 @@ jobs:
run: echo "targetBranch=${{ github.event.inputs.targetBranch }}" >> $GITHUB_ENV
- name: Update targetBranch with actual bugfix branch name
if: github.event.inputs.targetBranch == 'bugfix'
run: echo "targetBranch=${{ needs.prep.outputs.bugBranch }}" >> $GITHUB_ENV
run: echo "targetBranch=$(git branch --list *.*.z)" >> $GITHUB_ENV
# Save old version
- name: Find and save old major_version from manifest
run: awk 'BEGIN { FS="=" } /^major_version/ { print "oldMajor="$2; }' manifest >> $GITHUB_ENV
Expand Down

0 comments on commit f936db4

Please sign in to comment.