|
|
|
@ -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 }}
|
|
|
|
|
|
|
|
|
|