Correcting snapshot configuration references
This commit is contained in:
Vendored
+2
-2
@@ -248,8 +248,8 @@ function run() {
|
||||
const snapshotConfig = {
|
||||
includeManifestFile: core.getBooleanInput('snapshot-include-file-name'),
|
||||
manifestFile: core.getInput('snapshot-dependency-file-name'),
|
||||
targetSHA: core.getInput('snapshot-sha'),
|
||||
targetRef: core.getInput('snapshot-ref'),
|
||||
sha: core.getInput('snapshot-sha'),
|
||||
ref: core.getInput('snapshot-ref'),
|
||||
};
|
||||
snapshot = yield (0, snapshot_generator_1.generateSnapshot)(directory, mavenConfig, snapshotConfig);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -28,7 +28,7 @@ process.env['GITHUB_API_URL'] = opts.githubApiUrl;
|
||||
|
||||
// The above injection of environment variables is required before the submission APIs are imported
|
||||
import { Snapshot, submitSnapshot } from '@github/dependency-submission-toolkit';
|
||||
import { generateSnapshot } from '../snapshot-generator';
|
||||
import { SnapshotConfig, generateSnapshot } from '../snapshot-generator';
|
||||
|
||||
async function execute() {
|
||||
let snapshot: Snapshot | undefined;
|
||||
@@ -60,7 +60,7 @@ async function execute() {
|
||||
mavenArgs: opts.mavenArgs
|
||||
};
|
||||
|
||||
const snapshotConfig = {
|
||||
const snapshotConfig: SnapshotConfig = {
|
||||
context,
|
||||
job,
|
||||
}
|
||||
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
import * as core from '@actions/core';
|
||||
import {Snapshot, submitSnapshot} from '@github/dependency-submission-toolkit';
|
||||
import { generateSnapshot } from './snapshot-generator';
|
||||
import { SnapshotConfig, generateSnapshot } from './snapshot-generator';
|
||||
|
||||
async function run() {
|
||||
let snapshot: Snapshot | undefined;
|
||||
@@ -12,11 +12,11 @@ async function run() {
|
||||
settingsFile: core.getInput('settings-file'),
|
||||
mavenArgs: core.getInput('maven-args') || '',
|
||||
}
|
||||
const snapshotConfig = {
|
||||
const snapshotConfig: SnapshotConfig = {
|
||||
includeManifestFile: core.getBooleanInput('snapshot-include-file-name'),
|
||||
manifestFile: core.getInput('snapshot-dependency-file-name'),
|
||||
targetSHA: core.getInput('snapshot-sha'),
|
||||
targetRef: core.getInput('snapshot-ref'),
|
||||
sha: core.getInput('snapshot-sha'),
|
||||
ref: core.getInput('snapshot-ref'),
|
||||
}
|
||||
|
||||
snapshot = await generateSnapshot(directory, mavenConfig, snapshotConfig);
|
||||
|
||||
Reference in New Issue
Block a user