Try forcing the commit

This commit is contained in:
Tom Hu
2021-03-08 18:42:16 -05:00
parent ca774cf8f0
commit 482a90585e
4 changed files with 18 additions and 3 deletions

View File

@@ -1,4 +1,7 @@
const core = require('@actions/core');
const github = require('@actions/github');
const context = github.context;
const isTrue = (variable) => {
const lowercase = variable.toLowerCase();
@@ -128,6 +131,8 @@ const buildExec = () => {
}
if (overrideCommit) {
execArgs.push('-C', `${overrideCommit}`);
} else {
execArgs.push('-C', `${context.sha}`);
}
if (overridePr) {
execArgs.push('-P', `${overridePr}`);