Skip to content

Commit 4df8a30

Browse files
committed
Removing unnecessary check
1 parent f206083 commit 4df8a30

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,17 @@ jobs:
1111
name: Extract Version
1212
outputs:
1313
version: ${{ steps.check_version.outputs.version }}
14-
ok: ${{ steps.check_version.outputs.ok }}
1514
steps:
1615
- id: check_version
1716
continue-on-error: true
1817
run: |
1918
tag=${{ github.ref_name }}
2019
prefix="v"
21-
if [[ $tag == $prefix* ]]; then
22-
version=${tag#$prefix}
23-
echo "name=version::$version" >> $GITHUB_STATE
24-
echo "name=ok::true" >> $GITHUB_STATE
25-
else
26-
echo "name=version::invalid" >> $GITHUB_STATE
27-
echo "name=ok::false" >> $GITHUB_STATE
28-
fi
20+
version=${tag#$prefix}
21+
echo "name=version::$version" >> $GITHUB_STATE
2922
3023
Create-Artifact:
3124
needs: Extract-Version
32-
if: ${{ needs.Extract-Version.outputs.ok == 'true' }}
3325
uses: ./.github/workflows/artifact.yml
3426
with:
3527
release: true

0 commit comments

Comments
 (0)