@@ -122752,11 +122752,21 @@ const telemetry_1 = __nccwpck_require__(12417);
122752122752        if (setCommitsOption !== 'skip') {
122753122753            yield (0, telemetry_1.traceStep)('set-commits', () => __awaiter(void 0, void 0, void 0, function* () {
122754122754                core.debug(`Setting commits with option '${setCommitsOption}'`);
122755-                 yield (0, cli_1.getCLI)().setCommits(release, {
122756-                     auto: true,
122757-                     ignoreMissing,
122758-                     ignoreEmpty,
122759-                 });
122755+                 if (setCommitsOption === 'auto') {
122756+                     yield (0, cli_1.getCLI)().setCommits(release, {
122757+                         auto: true,
122758+                         ignoreMissing,
122759+                         ignoreEmpty,
122760+                     });
122761+                 }
122762+                 else if (setCommitsOption === 'manual') {
122763+                     const { repo, commit, previousCommit } = options.getSetCommitsManualOptions();
122764+                     if (!repo || !commit) {
122765+                         throw new Error('Options `repo` and `commit` are required when `set_commits` is `manual`');
122766+                     }
122767+                     yield (0, cli_1.getCLI)().setCommits(release, Object.assign({ auto: false, repo,
122768+                         commit }, (previousCommit && { previousCommit })));
122769+                 }
122760122770            }));
122761122771        }
122762122772        Sentry.setTag('sourcemaps', sourcemaps.length > 0);
@@ -122860,7 +122870,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
122860122870    return (mod && mod.__esModule) ? mod : { "default": mod };
122861122871};
122862122872Object.defineProperty(exports, "__esModule", ({ value: true }));
122863- exports.getWorkingDirectory = exports.getUrlPrefixOption = exports.getProjects = exports.checkEnvironmentVariables = exports.getSetCommitsOption = exports.getBooleanOption = exports.getDist = exports.getSourcemaps = exports.getStartedAt = exports.getEnvironment = exports.getRelease = void 0;
122873+ exports.getWorkingDirectory = exports.getUrlPrefixOption = exports.getProjects = exports.checkEnvironmentVariables = exports.getSetCommitsManualOptions = exports. getSetCommitsOption = exports.getBooleanOption = exports.getDist = exports.getSourcemaps = exports.getStartedAt = exports.getEnvironment = exports.getRelease = void 0;
122864122874const core = __importStar(__nccwpck_require__(42186));
122865122875const path_1 = __importDefault(__nccwpck_require__(71017));
122866122876const cli_1 = __nccwpck_require__(56733);
@@ -122993,11 +123003,20 @@ const getSetCommitsOption = () => {
122993123003            return 'auto';
122994123004        case 'skip':
122995123005            return 'skip';
123006+         case 'manual':
123007+             return 'manual';
122996123008        default:
122997-             throw Error('set_commits must be "auto"  or "skip "');
123009+             throw Error('set_commits must be "auto", "skip"  or "manual "');
122998123010    }
122999123011};
123000123012exports.getSetCommitsOption = getSetCommitsOption;
123013+ const getSetCommitsManualOptions = () => {
123014+     const repo = core.getInput('repo');
123015+     const commit = core.getInput('commit');
123016+     const previousCommit = core.getInput('previous_commit');
123017+     return { repo, commit, previousCommit };
123018+ };
123019+ exports.getSetCommitsManualOptions = getSetCommitsManualOptions;
123001123020/**
123002123021 * Check for required environment variables.
123003123022 */
0 commit comments