File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 9
9
description : Destination
10
10
required : false
11
11
default : ${{ github.workspace }}
12
+ add-to-path :
13
+ description : Add to path
14
+ required : false
15
+ default : ' '
12
16
version :
13
17
description : Version to retrieve (defaults to latest)
14
18
required : false
62
66
GH_TOKEN : ${{ inputs.token }}
63
67
repo : ${{ inputs.repository }}
64
68
destination : ${{ inputs.destination }}
69
+ add_to_path : ${{ inputs.add-to-path }}
65
70
version : ${{ inputs.version }}
66
71
os : ${{ inputs.os }}
67
72
os_re : ${{ inputs.os-pattern }}
Original file line number Diff line number Diff line change @@ -156,6 +156,9 @@ maybe_extract_artifact() {
156
156
esac
157
157
if [ -n " $destination " ] && [ -f " $destination " ]; then
158
158
chmod +x " $destination "
159
+ if [ -n " $add_to_path " ]; then
160
+ dirname " $destination " >> " $GITHUB_PATH "
161
+ fi
159
162
fi
160
163
}
161
164
You can’t perform that action at this time.
0 commit comments