File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
- name : Publish to crate .io
1
+ name : Publish to crates .io
2
2
3
3
on :
4
4
workflow_dispatch :
@@ -33,15 +33,17 @@ jobs:
33
33
34
34
- name : Get version
35
35
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"
37
39
38
40
- uses : rickstaa/action-create-tag@v1
39
41
id : tag_create
40
42
with :
41
43
tag : v${{ steps.get_version.outputs.version }}
42
44
43
45
- name : Create Release
44
- if : ${{ ! steps.tag_create.outputs.tag_exists }}
46
+ if : ${{ steps.tag_create.outputs.tag_exists != 'true' }}
45
47
uses : actions/create-release@v1
46
48
env :
47
49
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments