File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 5656 RESULT="false"
5757 fi
5858
59- echo "::set-output name= result:: $RESULT"
59+ echo "result= $RESULT" >> $GITHUB_OUTPUT
6060
6161 check-cache :
6262 needs : run-determination
6969 with :
7070 submodules : recursive
7171
72+ # This is required to allow jonabc/setup-licensed to install licensed via Ruby gem.
73+ - name : Install Ruby
74+ uses : ruby/setup-ruby@v1
75+ with :
76+ ruby-version : ruby # Install latest version
77+
7278 - name : Install licensed
7379 uses : jonabc/setup-licensed@v1
7480 with :
@@ -119,6 +125,12 @@ jobs:
119125 with :
120126 submodules : recursive
121127
128+ # This is required to allow jonabc/setup-licensed to install licensed via Ruby gem.
129+ - name : Install Ruby
130+ uses : ruby/setup-ruby@v1
131+ with :
132+ ruby-version : ruby # Install latest version
133+
122134 - name : Install licensed
123135 uses : jonabc/setup-licensed@v1
124136 with :
Original file line number Diff line number Diff line change @@ -45,17 +45,25 @@ tasks:
4545 docs:generate :
4646 desc : Create all generated documentation content
4747
48+ # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-dependencies-task/Taskfile.yml
49+ general:prepare-deps :
50+ desc : Prepare project dependencies for license check
51+ # No preparation is needed for Go module-based projects.
52+
4853 # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-dependencies-task/Taskfile.yml
4954 general:cache-dep-licenses :
5055 desc : Cache dependency license metadata
56+ deps :
57+ - task : general:prepare-deps
5158 cmds :
5259 - |
5360 if ! which licensed &>/dev/null; then
5461 if [[ {{OS}} == "windows" ]]; then
5562 echo "Licensed does not have Windows support."
5663 echo "Please use Linux/macOS or download the dependencies cache from the GitHub Actions workflow artifact."
5764 else
58- echo "licensed not found or not in PATH. Please install: https://github.com/github/licensed#as-an-executable"
65+ echo "licensed not found or not in PATH."
66+ echo "Please install: https://github.com/github/licensed#as-an-executable"
5967 fi
6068 exit 1
6169 fi
You can’t perform that action at this time.
0 commit comments