chore: update event name (#1242)
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
parent
f41e41fa3f
commit
c467712045
4
dist/index.js
generated
vendored
4
dist/index.js
generated
vendored
@ -839,11 +839,11 @@ function run() {
|
||||
}
|
||||
let diffResult;
|
||||
if (!env.GITHUB_EVENT_PULL_REQUEST_BASE_REF) {
|
||||
core.info('Running on a push event...');
|
||||
core.info(`Running on a ${env.GITHUB_EVENT_NAME || 'push'} event...`);
|
||||
diffResult = yield (0, commitSha_1.getSHAForPushEvent)(inputs, env, workingDirectory, isShallow, hasSubmodule, gitExtraArgs, isTag);
|
||||
}
|
||||
else {
|
||||
core.info('Running on a pull request event...');
|
||||
core.info(`Running on a ${env.GITHUB_EVENT_NAME || 'pull_request'} event...`);
|
||||
diffResult = yield (0, commitSha_1.getSHAForPullRequestEvent)(inputs, env, workingDirectory, isShallow, hasSubmodule, gitExtraArgs);
|
||||
}
|
||||
if (diffResult.initialCommit) {
|
||||
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@ -67,7 +67,7 @@ export async function run(): Promise<void> {
|
||||
let diffResult: DiffResult
|
||||
|
||||
if (!env.GITHUB_EVENT_PULL_REQUEST_BASE_REF) {
|
||||
core.info('Running on a push event...')
|
||||
core.info(`Running on a ${env.GITHUB_EVENT_NAME || 'push'} event...`)
|
||||
diffResult = await getSHAForPushEvent(
|
||||
inputs,
|
||||
env,
|
||||
@ -78,7 +78,9 @@ export async function run(): Promise<void> {
|
||||
isTag
|
||||
)
|
||||
} else {
|
||||
core.info('Running on a pull request event...')
|
||||
core.info(
|
||||
`Running on a ${env.GITHUB_EVENT_NAME || 'pull_request'} event...`
|
||||
)
|
||||
diffResult = await getSHAForPullRequestEvent(
|
||||
inputs,
|
||||
env,
|
||||
|
Loading…
x
Reference in New Issue
Block a user