Skip to content

Rewrite using a composite action #2

Rewrite using a composite action

Rewrite using a composite action #2

Workflow file for this run

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