Skip to content

Commit 3b8260b

Browse files
committed
ci: check snapshot
1 parent 59bec1e commit 3b8260b

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/actions/version/action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ inputs:
1010
required: true
1111
default: 'versions.processor'
1212
outputs:
13-
build-version:
13+
version:
1414
description: "the build version"
1515
value: ${{ steps.extract-version.outputs.build-version }}
16+
snapshot:
17+
description: "if it is a snapshot version"
18+
value: ${{ steps.extract-version.outputs.snapshot }}
19+
1620
runs:
1721
using: 'composite'
1822
steps:
@@ -34,5 +38,6 @@ runs:
3438
shell: bash
3539
run: |
3640
version=`cat ${{inputs.version-file}} | dasel -i toml '${{inputs.version-path}}'`
37-
echo "build-version=${version}" >> $GITHUB_OUTPUT
41+
echo "version=${version}" >> $GITHUB_OUTPUT
42+
echo "snapshot=${{contains(version, 'SNAPSHOT')}} >> $GITHUB_OUTPUT
3843
cat $GITHUB_OUTPUT

0 commit comments

Comments
 (0)