Updating CLI to include the same inputs that the action supports
This commit is contained in:
@@ -14,7 +14,7 @@ jobs:
|
||||
|
||||
- name: Build executables
|
||||
run: |
|
||||
npm run base-build
|
||||
npm run build
|
||||
npm run build-exe
|
||||
|
||||
- name: Attach artifacts
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2022 GitHub, Inc
|
||||
Copyright (c) 2023 GitHub, Inc
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
+1
-1
@@ -54,5 +54,5 @@ inputs:
|
||||
|
||||
|
||||
runs:
|
||||
using: node16
|
||||
using: node20
|
||||
main: dist/index.js
|
||||
|
||||
Vendored
+1774
-1511
File diff suppressed because it is too large
Load Diff
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+3
-3
@@ -42,9 +42,9 @@
|
||||
},
|
||||
"pkg": {
|
||||
"targets": [
|
||||
"node16-linux-x64",
|
||||
"node16-win-x64",
|
||||
"node16-macos-x64"
|
||||
"node18-linux-x64",
|
||||
"node18-win-x64",
|
||||
"node18-macos-x64"
|
||||
],
|
||||
"assets": [
|
||||
"package.json"
|
||||
|
||||
@@ -17,6 +17,9 @@ program.option('--github-api-url <url>', 'GitHub API URL', 'https://api.github.c
|
||||
program.option('-j --job-name <jobName>', 'Optional name for the activity creating and submitting the graph', 'maven-dependency-submission-cli');
|
||||
program.option('-i --run-id <jobName>', 'Optional Run ID number for the activity that is providing the graph');
|
||||
|
||||
program.option('--snapshot-exclude-file-name', 'exclude the file name in the dependency snapshot report. If false the name of the artifactor from the POM will be used, but any links in GitHub will not work.');
|
||||
program.option('--snapshot-dependency-file-name <fileName>', 'optional override to specificy the path to the file that the snapshot will be associated with in the repository');
|
||||
|
||||
program.parse(process.argv);
|
||||
|
||||
const opts = program.opts();
|
||||
@@ -65,6 +68,9 @@ async function execute() {
|
||||
job,
|
||||
sha: opts.sha,
|
||||
ref: opts.branchRef,
|
||||
|
||||
manifestFile: opts.snapshotDependencyFileName,
|
||||
includeManifestFile: !opts.snapshotExcludeFileName,
|
||||
}
|
||||
|
||||
snapshot = await generateSnapshot(opts.directory, mvnConfig, snapshotConfig);
|
||||
|
||||
Reference in New Issue
Block a user