@probelabs/visor 0.1.23 → 0.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/action.yml +1 -3
- package/dist/index.js +5 -6
- package/package.json +1 -1
package/action.yml
CHANGED
package/dist/index.js
CHANGED
|
@@ -80814,8 +80814,8 @@ class ActionCliBridge {
|
|
|
80814
80814
|
const bundledPath = actionPath
|
|
80815
80815
|
? path.join(actionPath, 'dist', 'index.js')
|
|
80816
80816
|
: path.join(__dirname, 'index.js'); // When running locally
|
|
80817
|
-
//
|
|
80818
|
-
const result = await this.executeCommand('node', [bundledPath, ...cliArgs], {
|
|
80817
|
+
// Pass --cli flag to force CLI mode even when GITHUB_ACTIONS env var is set
|
|
80818
|
+
const result = await this.executeCommand('node', [bundledPath, '--cli', ...cliArgs], {
|
|
80819
80819
|
cwd: workingDir,
|
|
80820
80820
|
env,
|
|
80821
80821
|
timeout,
|
|
@@ -87193,11 +87193,10 @@ async function markCheckAsFailed(checkService, owner, repo, checkRunId, checkNam
|
|
|
87193
87193
|
}
|
|
87194
87194
|
}
|
|
87195
87195
|
if (require.main === require.cache[eval('__filename')]) {
|
|
87196
|
-
// Simple mode detection:
|
|
87197
|
-
|
|
87196
|
+
// Simple mode detection: use GITHUB_ACTIONS env var which is always 'true' in GitHub Actions
|
|
87197
|
+
// Also check for --cli flag to force CLI mode even in GitHub Actions environment
|
|
87198
|
+
const isGitHubAction = process.env.GITHUB_ACTIONS === 'true' && !process.argv.includes('--cli');
|
|
87198
87199
|
if (isGitHubAction) {
|
|
87199
|
-
// Remove the --github-action flag from argv so it doesn't interfere
|
|
87200
|
-
process.argv = process.argv.filter(arg => arg !== '--github-action');
|
|
87201
87200
|
// Run as GitHub Action
|
|
87202
87201
|
run();
|
|
87203
87202
|
}
|