Override stage of not release (#7371)
This commit is contained in:
parent
f85d1b8289
commit
51c7bcb138
1 changed files with 5 additions and 0 deletions
5
.github/workflows/create-release.yml
vendored
5
.github/workflows/create-release.yml
vendored
|
|
@ -22,11 +22,16 @@ jobs:
|
|||
- name: Read version file
|
||||
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
|
||||
id: next-version
|
||||
uses: symless/actions/next-version@master
|
||||
with:
|
||||
current-version: ${{ env.CURRENT_VERSION }}
|
||||
override-stage: ${{ env.OVERRIDE_STAGE }}
|
||||
|
||||
- name: Print next version
|
||||
run: echo ${{ steps.next-version.outputs.next-version }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue