Updating CLI to include the same inputs that the action supports

This commit is contained in:
Peter Murray
2023-12-18 07:41:27 +00:00
committed by GitHub
parent 4efffecbc6
commit 677cb9cc73
7 changed files with 1787 additions and 1518 deletions
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -54,5 +54,5 @@ inputs:
runs:
using: node16
using: node20
main: dist/index.js
+1773 -1510
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
File diff suppressed because one or more lines are too long
+3 -3
View File
@@ -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"
+6
View File
@@ -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);