Skip to content

Commit 159fc09

Browse files
committed
add: actionlint
1 parent 874d081 commit 159fc09

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.github/workflows/actionlint.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Lint GitHub Actions workflows
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- .github/workflows/*.yml
7+
- .github/actionlint.yml
8+
- .github/actionlint-matcher.json
9+
10+
jobs:
11+
actionlint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v6
16+
17+
- name: Check workflow files
18+
uses: reviewdog/action-actionlint@v1

.github/workflows/gh-deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ jobs:
3333
uses: ./.github/actions/setup-python-with-uv
3434

3535
- name: Generate cache id
36-
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
36+
id: cache
37+
run: echo "id=$(date --utc '+%V')" >> "$GITHUB_OUTPUT"
3738

3839
- name: Save cache
3940
uses: actions/cache@v5
4041
with:
41-
key: mkdocs-material-${{ env.cache_id }}
42+
key: mkdocs-material-${{ steps.cache.outputs.id }}
4243
path: .cache
4344
restore-keys: mkdocs-material-
4445

0 commit comments

Comments
 (0)