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 a40fe25 commit e74fd71
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ jobs:
outputs:
bugBranch: ${{ steps.saveBugfixBranch.outputs.bugBranch }}
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Save bugfix branch name
id: saveBugfixBranch
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- id: saveBugfixBranch
run: echo "bugBranch=$(git branch --list *.*.z)" >> $GITHUB_OUTPUT
# ${{ needs.prep.outputs.bugBranch }}
build:
Expand All @@ -48,9 +46,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=$bugBranch" >> $GITHUB_ENV
env:
bugBranch: ${{ needs.prep.outputs.bugBranch }}
run: echo "targetBranch=${{ needs.prep.outputs.bugBranch }}" >> $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 @@ -107,9 +103,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=$bugBranch" >> $GITHUB_ENV
env:
bugBranch: ${{ needs.prep.outputs.bugBranch }}
run: echo "targetBranch=${{ needs.prep.outputs.bugBranch }}" >> $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 @@ -169,9 +163,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=$bugBranch" >> $GITHUB_ENV
env:
bugBranch: ${{ needs.prep.outputs.bugBranch }}
run: echo "targetBranch=${{ needs.prep.outputs.bugBranch }}" >> $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 e74fd71

Please sign in to comment.