Skip to content

Commit 2aa2f62

Browse files
authored
GHA workflow improvements (#13)
* fix registry reference in workflow name * fix double quote escaping * compare step output to string
1 parent 28add06 commit 2aa2f62

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/deploy.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish to crate.io
1+
name: Publish to crates.io
22

33
on:
44
workflow_dispatch:
@@ -33,15 +33,17 @@ jobs:
3333

3434
- name: Get version
3535
id: get_version
36-
run: echo "version=$(grep version Cargo.toml | head -n1 | cut -d '"' -f2)" >> "$GITHUB_OUTPUT"
36+
run: |
37+
version=$(grep version Cargo.toml | head -n1 | cut -d '"' -f2)
38+
echo "version=$version" >> "$GITHUB_OUTPUT"
3739
3840
- uses: rickstaa/action-create-tag@v1
3941
id: tag_create
4042
with:
4143
tag: v${{ steps.get_version.outputs.version }}
4244

4345
- name: Create Release
44-
if: ${{ !steps.tag_create.outputs.tag_exists }}
46+
if: ${{ steps.tag_create.outputs.tag_exists != 'true' }}
4547
uses: actions/create-release@v1
4648
env:
4749
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)