|
# FIXME: superlinter should auto install required dependencies. See https://github.com/super-linter/super-linter/issues/6089. |
if: inputs.lint-all && github.ref_name != github.event.repository.default_branch
with:
ref: "${{ github.event.repository.default_branch }}"
persist-credentials: false
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: "${{ inputs.lint-all && 1 || 0 }}"
persist-credentials: false
- if: ${{ inputs.linter-env }}
env:
LINTER_ENV: ${{ inputs.linter-env }}
run: |
echo "$LINTER_ENV" | while IFS= read -r line; do
if [ -z "$line" ]; then continue; fi
echo "$line" >> "$GITHUB_ENV"
done
# FIXME: superlinter should auto install required dependencies. See https://github.com/super-linter/super-linter/issues/6089.
- id: has-prettier-plugins
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with: