File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
.github/composite/getLatest Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
name : Get latest release
2
2
description : ' Install Scripts latest release'
3
3
4
+ inputs :
5
+ token :
6
+ description : ' Github token'
7
+ required : true
8
+
4
9
runs :
5
10
using : " composite"
6
11
steps :
7
12
- name : Get latest release
8
13
run : |
9
- downloadUrl=$(curl -s https://api.github.com/repos/gradle/gradle-enterprise-build-validation-scripts/releases/latest | jq -c '.assets[] | select(.content_type == "application/zip")' | jq -r .browser_download_url | grep -v maven)
14
+ downloadUrl=$(curl -S -H 'authorization: Bearer ${{ inputs.token }}' https://api.github.com/repos/gradle/gradle-enterprise-build-validation-scripts/releases/latest | jq -c '.assets[] | select(.content_type == "application/zip")' | jq -r .browser_download_url | grep -v maven)
10
15
curl -s -L -o gradle-enterprise-gradle-build-validation.zip $downloadUrl
11
16
unzip -q -o gradle-enterprise-gradle-build-validation.zip
12
17
shell : bash
You can’t perform that action at this time.
0 commit comments