File tree 2 files changed +22
-2
lines changed
2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 56
56
RESULT="false"
57
57
fi
58
58
59
- echo "::set-output name= result:: $RESULT"
59
+ echo "result= $RESULT" >> $GITHUB_OUTPUT
60
60
61
61
check-cache :
62
62
needs : run-determination
69
69
with :
70
70
submodules : recursive
71
71
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
+
72
78
- name : Install licensed
73
79
uses : jonabc/setup-licensed@v1
74
80
with :
@@ -119,6 +125,12 @@ jobs:
119
125
with :
120
126
submodules : recursive
121
127
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
+
122
134
- name : Install licensed
123
135
uses : jonabc/setup-licensed@v1
124
136
with :
Original file line number Diff line number Diff line change @@ -45,17 +45,25 @@ tasks:
45
45
docs:generate :
46
46
desc : Create all generated documentation content
47
47
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
+
48
53
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-dependencies-task/Taskfile.yml
49
54
general:cache-dep-licenses :
50
55
desc : Cache dependency license metadata
56
+ deps :
57
+ - task : general:prepare-deps
51
58
cmds :
52
59
- |
53
60
if ! which licensed &>/dev/null; then
54
61
if [[ {{OS}} == "windows" ]]; then
55
62
echo "Licensed does not have Windows support."
56
63
echo "Please use Linux/macOS or download the dependencies cache from the GitHub Actions workflow artifact."
57
64
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"
59
67
fi
60
68
exit 1
61
69
fi
You can’t perform that action at this time.
0 commit comments