diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml new file mode 100644 index 0000000..8dd1596 --- /dev/null +++ b/.github/workflows/actionlint.yml @@ -0,0 +1,16 @@ +name: Lint GitHub Actions workflows + +on: + pull_request: + paths: + - .github/workflows/*.yml + +jobs: + actionlint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Check workflow files + uses: reviewdog/action-actionlint@v1 diff --git a/.github/workflows/gh-deploy.yml b/.github/workflows/gh-deploy.yml index 9aea5b6..7db889c 100644 --- a/.github/workflows/gh-deploy.yml +++ b/.github/workflows/gh-deploy.yml @@ -33,12 +33,13 @@ jobs: uses: ./.github/actions/setup-python-with-uv - name: Generate cache id - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV + id: cache + run: echo "id=$(date --utc '+%V')" >> "$GITHUB_OUTPUT" - name: Save cache uses: actions/cache@v5 with: - key: mkdocs-material-${{ env.cache_id }} + key: mkdocs-material-${{ steps.cache.outputs.id }} path: .cache restore-keys: mkdocs-material- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b76b7d5..f2b3c89 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -52,6 +52,11 @@ repos: language: python types: [python] + - repo: https://github.com/rhysd/actionlint + rev: v1.7.10 + hooks: + - id: actionlint + - repo: https://github.com/hadolint/hadolint rev: v2.12.0 hooks: