mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 09:14:58 +00:00
Exit if running in an Actions workflow
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# Check if running in GitHub Actions
|
||||
if [ "$GITHUB_ACTIONS" = "true" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Check if npm install is likely needed before proceeding
|
||||
if [ ! -d node_modules ] || [ package-lock.json -nt node_modules/.package-lock.json ]; then
|
||||
npm install
|
||||
|
||||
Reference in New Issue
Block a user