aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorh1dden-da3m0n <33120068+h1dden-da3m0n@users.noreply.github.com>2021-06-27 13:20:54 +0200
committerh1dden-da3m0n <33120068+h1dden-da3m0n@users.noreply.github.com>2021-06-27 13:20:54 +0200
commit9923ea6151282df1204089289d59a158b6eaaf67 (patch)
tree1604522a7ef5fda3147a60d512ce910d4e92a77d
parent24d99bdc3e45ea1b94c9d6285de5784ec6565e93 (diff)
change to address review feedback
-rw-r--r--.github/workflows/auto-bump_version.yml16
1 files changed, 1 insertions, 15 deletions
diff --git a/.github/workflows/auto-bump_version.yml b/.github/workflows/auto-bump_version.yml
index 67f2e6064..dc0adb96b 100644
--- a/.github/workflows/auto-bump_version.yml
+++ b/.github/workflows/auto-bump_version.yml
@@ -63,27 +63,13 @@ jobs:
if: ${{ github.event_name == 'workflow_dispatch' }}
env:
TAG_BRANCH: ${{ github.event.inputs.TAG_BRANCH }}
+ NEXT_VERSION: ${{ github.event.inputs.NEXT_VERSION }}
steps:
- - name: Setup YQ
- uses: chrisdickinson/setup-yq@latest
- with:
- yq-version: v4.9.6
-
- name: Checkout Repository
uses: actions/checkout@v2
with:
ref: ${{ env.TAG_BRANCH }}
- - name: Setup EnvVars
- run: |-
- CURRENT_VERSION=$(yq e '.version' build.yaml)
- CURRENT_MAJOR_MINOR=${CURRENT_VERSION%.*}
- CURRENT_PATCH=${CURRENT_VERSION##*.}
- echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_ENV
- echo "CURRENT_MAJOR_MINOR=${CURRENT_MAJOR_MINOR}" >> $GITHUB_ENV
- echo "CURRENT_PATCH=${CURRENT_PATCH}" >> $GITHUB_ENV
- echo "NEXT_VERSION=${{ github.event.inputs.NEXT_VERSION }}" >> $GITHUB_ENV
-
- name: Run bump_version
run: ./bump_version ${{ env.NEXT_VERSION }}