chore(deps): update actions/checkout action to v4.2.1 #357
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: mega-linter | |
on: | |
workflow_dispatch: | |
push: | |
branches-ignore: | |
- main | |
permissions: read-all | |
jobs: | |
mega-linter: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Restore lychee cache | |
uses: actions/cache@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0 | |
with: | |
path: .lycheecache | |
key: cache-lychee-${{ github.sha }} | |
restore-keys: cache-lychee- | |
- name: Extract commands from markdown files | |
run: | | |
set -euxo pipefail | |
echo '#!/usr/bin/env bash' > README.sh | |
find . -name '*.md' -print0 | while IFS= read -r -d '' FILE; do | |
# Extract: ```bash ... ``` | |
sed -n "/^\`\`\`\(bash\|shell\)$/,/^\`\`\`$/p" "${FILE}" | sed '/^```*/d' >> README.sh | |
# Extract: ```bash ... ``` | |
sed -n "/^ \`\`\`\(bash\|shell\)$/,/^ \`\`\`$/p" "${FILE}" | sed '/^ ```*/d; s/^ //' >> README.sh | |
done | |
chmod a+x README.sh | |
- name: 💡 MegaLinter | |
uses: oxsecurity/megalinter@c217fe8f7bc9207062a084e989bd97efd56e7b9a # v8.0.0 | |
env: | |
GITHUB_COMMENT_REPORTER: false | |
# Disabled due to error: [GitHub Status Reporter] Error posting Status for REPOSITORY with ...: 403 | |
GITHUB_STATUS_REPORTER: false | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |