Override stage of not release (#7371)

This commit is contained in:
Nick Bolton 2024-07-07 22:16:45 +01:00 committed by GitHub
parent f85d1b8289
commit 51c7bcb138
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,11 +22,16 @@ jobs:
- name: Read version file - name: Read version file
run: echo "CURRENT_VERSION=$(cat VERSION)" >> $GITHUB_ENV run: echo "CURRENT_VERSION=$(cat VERSION)" >> $GITHUB_ENV
- name: Override stage
if: ${{ !startsWith(github.ref, 'refs/heads/release') }}
run: echo "OVERRIDE_STAGE=snapshot" >> $GITHUB_ENV
- name: Get next version - name: Get next version
id: next-version id: next-version
uses: symless/actions/next-version@master uses: symless/actions/next-version@master
with: with:
current-version: ${{ env.CURRENT_VERSION }} current-version: ${{ env.CURRENT_VERSION }}
override-stage: ${{ env.OVERRIDE_STAGE }}
- name: Print next version - name: Print next version
run: echo ${{ steps.next-version.outputs.next-version }} run: echo ${{ steps.next-version.outputs.next-version }}