Skip to content

Commit f511606

Browse files
committed
fix: support paring CLI args when the CLI env set in a GitHub Action
1 parent eb30a83 commit f511606

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

dist/cli.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/post.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import * as coreDefault from '@actions/core'
22
import { coreMocked } from './mocking'
33

4-
export const core = process.env.MOCKING || !process.env.GITHUB_ACTIONS ? coreMocked : coreDefault
4+
export const core = process.env.MOCKING || process.env.CLI || !process.env.GITHUB_ACTIONS ? coreMocked : coreDefault

src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ const run = async () => {
187187
await generateInfo()
188188
}
189189

190-
if (process.env.MOCKING || process.env.GITHUB_ACTIONS) {
190+
if (process.env.MOCKING || (process.env.GITHUB_ACTIONS && !process.env.CLI)) {
191191
run().catch((error) => {
192192
if (core.isDebug()) {
193193
throw error

0 commit comments

Comments
 (0)