Rewrite using a composite action #2
Workflow file for this run
This file contains hidden or 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: Format and Lint | |
| on: [pull_request, push] | |
| jobs: | |
| format-and-lint: | |
| name: Format and Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install ruff pyyaml | |
| - name: Unpack action | |
| run: python tools/unpack.py | |
| - name: ruff check | |
| run: ruff check action.py | |
| - name: ruff format | |
| run: ruff format action.py | |
| - name: Pack action | |
| run: python tools/pack.py | |
| - name: Check for changes | |
| run: git diff --exit-code |