Commit 698f0c7 1 parent 8151923 commit 698f0c7 Copy full SHA for 698f0c7
File tree 1 file changed +19
-1
lines changed
1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,26 @@ jobs:
21
21
github-token : ${{secrets.GITHUB_TOKEN}}
22
22
run-id : ${{github.event.workflow_run.id}}
23
23
24
+ - name : Check for artifacts
25
+ id : check_artifacts
26
+ run : |
27
+ if [ -z "$(find . -name 'webview_deno_rust*')" ]; then
28
+ echo "No artifacts found. Exiting successfully."
29
+ echo "artifacts_found=false" >> $GITHUB_OUTPUT
30
+ else
31
+ echo "Artifacts found. Proceeding with release."
32
+ echo "artifacts_found=true" >> $GITHUB_OUTPUT
33
+ fi
34
+
24
35
- name : Get version from Cargo.toml
36
+ if : steps.check_artifacts.outputs.artifacts_found == 'true'
25
37
id : get_version
26
38
run : |
27
39
VERSION=$(grep '^version =' Cargo.toml | sed 's/.*= *"//' | sed 's/".*//')
28
- echo "::set-output name= version:: $VERSION"
40
+ echo "version= $VERSION" >> $GITHUB_OUTPUT
29
41
30
42
- name : Create Release
43
+ if : steps.check_artifacts.outputs.artifacts_found == 'true'
31
44
uses : ncipollo/release-action@v1
32
45
with :
33
46
tag : v${{ steps.get_version.outputs.version }}
40
53
artifactErrorsFailBuild : true
41
54
42
55
- name : Release Status
56
+ if : steps.check_artifacts.outputs.artifacts_found == 'true'
43
57
run : echo "Release v${{ steps.get_version.outputs.version }} created or updated."
58
+
59
+ - name : No Release Status
60
+ if : steps.check_artifacts.outputs.artifacts_found == 'false'
61
+ run : echo "No new release created as no new artifacts were found."
You can’t perform that action at this time.
0 commit comments