Correcting snapshot configuration references

This commit is contained in:
Peter Murray
2023-11-22 17:23:23 +00:00
committed by GitHub
parent ff23df96ce
commit 7c5312639f
4 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -248,8 +248,8 @@ function run() {
const snapshotConfig = { const snapshotConfig = {
includeManifestFile: core.getBooleanInput('snapshot-include-file-name'), includeManifestFile: core.getBooleanInput('snapshot-include-file-name'),
manifestFile: core.getInput('snapshot-dependency-file-name'), manifestFile: core.getInput('snapshot-dependency-file-name'),
targetSHA: core.getInput('snapshot-sha'), sha: core.getInput('snapshot-sha'),
targetRef: core.getInput('snapshot-ref'), ref: core.getInput('snapshot-ref'),
}; };
snapshot = yield (0, snapshot_generator_1.generateSnapshot)(directory, mavenConfig, snapshotConfig); snapshot = yield (0, snapshot_generator_1.generateSnapshot)(directory, mavenConfig, snapshotConfig);
} }
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -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 // The above injection of environment variables is required before the submission APIs are imported
import { Snapshot, submitSnapshot } from '@github/dependency-submission-toolkit'; import { Snapshot, submitSnapshot } from '@github/dependency-submission-toolkit';
import { generateSnapshot } from '../snapshot-generator'; import { SnapshotConfig, generateSnapshot } from '../snapshot-generator';
async function execute() { async function execute() {
let snapshot: Snapshot | undefined; let snapshot: Snapshot | undefined;
@@ -60,7 +60,7 @@ async function execute() {
mavenArgs: opts.mavenArgs mavenArgs: opts.mavenArgs
}; };
const snapshotConfig = { const snapshotConfig: SnapshotConfig = {
context, context,
job, job,
} }
+4 -4
View File
@@ -1,6 +1,6 @@
import * as core from '@actions/core'; import * as core from '@actions/core';
import {Snapshot, submitSnapshot} from '@github/dependency-submission-toolkit'; import {Snapshot, submitSnapshot} from '@github/dependency-submission-toolkit';
import { generateSnapshot } from './snapshot-generator'; import { SnapshotConfig, generateSnapshot } from './snapshot-generator';
async function run() { async function run() {
let snapshot: Snapshot | undefined; let snapshot: Snapshot | undefined;
@@ -12,11 +12,11 @@ async function run() {
settingsFile: core.getInput('settings-file'), settingsFile: core.getInput('settings-file'),
mavenArgs: core.getInput('maven-args') || '', mavenArgs: core.getInput('maven-args') || '',
} }
const snapshotConfig = { const snapshotConfig: SnapshotConfig = {
includeManifestFile: core.getBooleanInput('snapshot-include-file-name'), includeManifestFile: core.getBooleanInput('snapshot-include-file-name'),
manifestFile: core.getInput('snapshot-dependency-file-name'), manifestFile: core.getInput('snapshot-dependency-file-name'),
targetSHA: core.getInput('snapshot-sha'), sha: core.getInput('snapshot-sha'),
targetRef: core.getInput('snapshot-ref'), ref: core.getInput('snapshot-ref'),
} }
snapshot = await generateSnapshot(directory, mavenConfig, snapshotConfig); snapshot = await generateSnapshot(directory, mavenConfig, snapshotConfig);