File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change 12
12
required : true
13
13
type : string
14
14
dry-run :
15
- description : ' true = dry-run'
15
+ description : ' true = dry-run: The upload will not actually be performed. '
16
16
required : false
17
17
type : boolean
18
18
default : false
48
48
file="${{ inputs.artifact-package-name }}"
49
49
file_path="./$file"
50
50
tag="${{ inputs.release-tag }}"
51
-
52
- if ! gh release view "$tag" &>/dev/null; then
53
- echo "::error title=Release Tag Not Found::The release tag '$tag' does not exist."
54
- exit 1
55
- fi
56
-
57
- if [ ! -f "$file_path" ]; then
58
- echo "::error title=File Not Found::The file '$file_path' does not exist."
59
- exit 1
60
- fi
61
-
62
- if [ "${{ inputs.dry-run }}" = "true" ]; then
63
- echo "::notice title=Dry Run::Simulating upload of '$file_path' to release tag '$tag'."
64
- else
65
- gh release upload "$tag" "$file_path"
66
- echo "::notice title=Uploaded Asset::$file_path has been successfully uploaded to release tag '$tag'."
67
- fi
51
+ echo "::notice title=Dry Run::Simulating upload of '$file_path' to release tag '$tag'."
You can’t perform that action at this time.
0 commit comments