Skip to content

Commit 292a91d

Browse files
committed
update version
1 parent dc85eee commit 292a91d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,20 @@ env:
3232
RELEASE_TAG_VERSION: ${{ inputs.version }}
3333

3434
jobs:
35+
process_version:
36+
runs-on: ubuntu-latest
37+
outputs:
38+
version: ${{ steps.version.outputs.version }}
39+
steps:
40+
- id: version
41+
name: Version
42+
run: |
43+
echo version="$(grep -q "SNAPSHOT" <<< "${{ inputs.version }}" && echo "${{ inputs.version }}" || echo "${{ inputs.version }}-SNAPSHOT")" >> "$GITHUB_OUTPUT"
44+
3545
version_seal:
3646
runs-on: ubuntu-latest
47+
needs:
48+
- process_version
3749
outputs:
3850
source_hash: ${{ steps.upload_source.outputs.artifact-digest }}
3951
steps:
@@ -44,7 +56,7 @@ jobs:
4456
name: version
4557
uses: ./.github/actions/version
4658
with:
47-
new_version: ${{ inputs.version }}
59+
new_version: ${{ needs.process_version.outputs.version }}
4860
snapshot: ${{ inputs.snapshot}}
4961
- id: upload_source
5062
name: Upload artifacts

0 commit comments

Comments
 (0)