Skip to content

Commit 43d4d70

Browse files
Copilotneilime
andcommitted
chore: remove unused path import and missing-deps output
Co-authored-by: neilime <314088+neilime@users.noreply.github.com>
1 parent 72da2ac commit 43d4d70

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

actions/test/action.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,24 +145,21 @@ runs:
145145
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
146146
with:
147147
script: |
148-
const path = require('node:path');
149-
150148
// Check which dependencies are missing
151149
const deps = ['git', 'curl', 'gpg'];
152-
const missingDeps = [];
150+
let hasMissingDeps = false;
153151
154152
for (const dep of deps) {
155153
try {
156154
await io.which(dep, true);
157155
core.info(`✓ ${dep} is already available`);
158156
} catch {
159157
core.info(`✗ ${dep} is not available, will be installed`);
160-
missingDeps.push(dep);
158+
hasMissingDeps = true;
161159
}
162160
}
163161
164-
core.setOutput('missing-deps', missingDeps.join(' '));
165-
core.setOutput('needs-install', missingDeps.length > 0 ? 'true' : 'false');
162+
core.setOutput('needs-install', hasMissingDeps ? 'true' : 'false');
166163
167164
- name: Install missing Codecov dependencies
168165
if: inputs.coverage == 'codecov' && inputs.container == 'true' && steps.check-codecov-deps.outputs.needs-install == 'true'

0 commit comments

Comments
 (0)