Skip to content

Create GHA extract shell scripts action #13

Create GHA extract shell scripts action

Create GHA extract shell scripts action #13

Workflow file for this run

---
name: Shell
on:
pull_request:
paths:
- "**.sh"
- ".github/workflows/*"
- "action.yaml"
- "gha_extract_shell_scripts.py"
jobs:
lint-format:

Check failure on line 12 in .github/workflows/shell.yaml

View workflow run for this annotation

GitHub Actions / Shell

Invalid workflow file

The workflow is not valid. .github/workflows/shell.yaml (Line: 12, Col: 3): The workflow must contain at least one job with no dependencies.
name: Lint & Format
needs: workflow-scripts
# These permissions are needed to:
# - Checkout the Git repo (`contents: read`)
# - Post a comments on PRs: https://github.com/luizm/action-sh-checker#secrets
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Extract workflow shell scripts
id: extract
uses: ./
- uses: luizm/action-sh-checker@c6edb3de93e904488b413636d96c6a56e3ad671a # v0.8.0
env:
GITHUB_TOKEN: ${{ github.token }}
with:
sh_checker_comment: true
# Support investigating linting/formatting errors
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: workflow-scripts
path: ${{ steps.extract.outputs.output-dir }}