Skip to content

Commit de88cfb

Browse files
Bump actions/cache from 3 to 5
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 5. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](actions/cache@v3...v5) --- updated-dependencies: - dependency-name: actions/cache dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
1 parent c285473 commit de88cfb

2 files changed

Lines changed: 157 additions & 157 deletions

File tree

Lines changed: 93 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,94 @@
1-
name: Markdown
2-
3-
on: pull_request
4-
5-
# Allow this job to clone the repo
6-
permissions:
7-
contents: read
8-
id-token: write
9-
10-
concurrency:
11-
group: ${{ github.workflow }}-${{ github.ref }}
12-
cancel-in-progress: true
13-
14-
jobs:
15-
lint:
16-
runs-on: ubuntu-latest
17-
strategy:
18-
fail-fast: true
19-
20-
steps:
21-
- name: Checkout
22-
uses: actions/checkout@v6
23-
with:
24-
fetch-depth: 0 # Fetch all history for comparison
25-
26-
- name: Load versions
27-
run: cat .github/versions.env >> "$GITHUB_ENV"
28-
29-
- name: Get changed markdown files
30-
id: changed-files
31-
run: |
32-
# Fetch the base branch
33-
git fetch origin ${{ github.base_ref }}
34-
35-
# Get changed .md and .mdx files
36-
CHANGED_FILES=$(git diff --name-only --diff-filter=ACMRT origin/${{ github.base_ref }}...HEAD | grep -E '\.(md|mdx)$' || true)
37-
38-
# Store the files
39-
echo "files<<EOF" >> $GITHUB_OUTPUT
40-
echo "$CHANGED_FILES" >> $GITHUB_OUTPUT
41-
echo "EOF" >> $GITHUB_OUTPUT
42-
43-
# Count files
44-
if [ -z "$CHANGED_FILES" ]; then
45-
echo "count=0" >> $GITHUB_OUTPUT
46-
else
47-
echo "count=$(echo "$CHANGED_FILES" | wc -l)" >> $GITHUB_OUTPUT
48-
fi
49-
50-
- name: Install pnpm
51-
if: steps.changed-files.outputs.count > 0
52-
uses: pnpm/action-setup@v6
53-
with:
54-
version: ${{ env.PNPM_VERSION }}
55-
run_install: false
56-
57-
- name: Setup Node
58-
if: steps.changed-files.outputs.count > 0
59-
uses: actions/setup-node@v6
60-
with:
61-
node-version: ${{ env.NODE_VERSION }}
62-
cache: 'pnpm'
63-
cache-dependency-path: 'pnpm-lock.yaml'
64-
65-
- name: Get pnpm store directory
66-
if: steps.changed-files.outputs.count > 0
67-
shell: bash
68-
run: |
69-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
70-
71-
- uses: actions/cache@v3
72-
if: steps.changed-files.outputs.count > 0
73-
name: Setup pnpm cache
74-
with:
75-
path: ${{ env.STORE_PATH }}
76-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
77-
restore-keys: |
78-
${{ runner.os }}-pnpm-store-
79-
80-
- name: PNPM install
81-
if: steps.changed-files.outputs.count > 0
82-
run: |
83-
echo; echo "cd to workspace"
84-
cd $GITHUB_WORKSPACE
85-
echo; echo "listing"
86-
ls
87-
echo; echo "PNPM install"
88-
pnpm install
89-
90-
- uses: DavidAnson/markdownlint-cli2-action@v23
91-
if: steps.changed-files.outputs.count > 0
92-
with:
93-
config: '.markdownlint.json'
1+
name: Markdown
2+
3+
on: pull_request
4+
5+
# Allow this job to clone the repo
6+
permissions:
7+
contents: read
8+
id-token: write
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
lint:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
fail-fast: true
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v6
23+
with:
24+
fetch-depth: 0 # Fetch all history for comparison
25+
26+
- name: Load versions
27+
run: cat .github/versions.env >> "$GITHUB_ENV"
28+
29+
- name: Get changed markdown files
30+
id: changed-files
31+
run: |
32+
# Fetch the base branch
33+
git fetch origin ${{ github.base_ref }}
34+
35+
# Get changed .md and .mdx files
36+
CHANGED_FILES=$(git diff --name-only --diff-filter=ACMRT origin/${{ github.base_ref }}...HEAD | grep -E '\.(md|mdx)$' || true)
37+
38+
# Store the files
39+
echo "files<<EOF" >> $GITHUB_OUTPUT
40+
echo "$CHANGED_FILES" >> $GITHUB_OUTPUT
41+
echo "EOF" >> $GITHUB_OUTPUT
42+
43+
# Count files
44+
if [ -z "$CHANGED_FILES" ]; then
45+
echo "count=0" >> $GITHUB_OUTPUT
46+
else
47+
echo "count=$(echo "$CHANGED_FILES" | wc -l)" >> $GITHUB_OUTPUT
48+
fi
49+
50+
- name: Install pnpm
51+
if: steps.changed-files.outputs.count > 0
52+
uses: pnpm/action-setup@v6
53+
with:
54+
version: ${{ env.PNPM_VERSION }}
55+
run_install: false
56+
57+
- name: Setup Node
58+
if: steps.changed-files.outputs.count > 0
59+
uses: actions/setup-node@v6
60+
with:
61+
node-version: ${{ env.NODE_VERSION }}
62+
cache: 'pnpm'
63+
cache-dependency-path: 'pnpm-lock.yaml'
64+
65+
- name: Get pnpm store directory
66+
if: steps.changed-files.outputs.count > 0
67+
shell: bash
68+
run: |
69+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
70+
71+
- uses: actions/cache@v5
72+
if: steps.changed-files.outputs.count > 0
73+
name: Setup pnpm cache
74+
with:
75+
path: ${{ env.STORE_PATH }}
76+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
77+
restore-keys: |
78+
${{ runner.os }}-pnpm-store-
79+
80+
- name: PNPM install
81+
if: steps.changed-files.outputs.count > 0
82+
run: |
83+
echo; echo "cd to workspace"
84+
cd $GITHUB_WORKSPACE
85+
echo; echo "listing"
86+
ls
87+
echo; echo "PNPM install"
88+
pnpm install
89+
90+
- uses: DavidAnson/markdownlint-cli2-action@v23
91+
if: steps.changed-files.outputs.count > 0
92+
with:
93+
config: '.markdownlint.json'
9494
globs: ${{ steps.changed-files.outputs.files }}
Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,64 @@
1-
name: Spellcheck
2-
3-
on: pull_request
4-
5-
# Allow this job to clone the repo
6-
permissions:
7-
contents: read
8-
id-token: write
9-
10-
concurrency:
11-
group: ${{ github.workflow }}-${{ github.ref }}
12-
cancel-in-progress: true
13-
14-
jobs:
15-
spellcheck:
16-
runs-on: ubuntu-latest
17-
strategy:
18-
fail-fast: true
19-
20-
steps:
21-
- name: Checkout
22-
uses: actions/checkout@v6
23-
24-
- name: Load versions
25-
run: cat .github/versions.env >> "$GITHUB_ENV"
26-
27-
- name: Install pnpm
28-
uses: pnpm/action-setup@v6
29-
with:
30-
version: ${{ env.PNPM_VERSION }}
31-
run_install: false
32-
33-
- name: Setup Node
34-
uses: actions/setup-node@v6
35-
with:
36-
node-version: ${{ env.NODE_VERSION }}
37-
cache: 'pnpm'
38-
cache-dependency-path: 'pnpm-lock.yaml'
39-
40-
- name: Get pnpm store directory
41-
shell: bash
42-
run: |
43-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
44-
45-
- uses: actions/cache@v4
46-
name: Setup pnpm cache
47-
with:
48-
path: ${{ env.STORE_PATH }}
49-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
50-
restore-keys: |
51-
${{ runner.os }}-pnpm-store-
52-
53-
- name: PNPM install
54-
run: |
55-
echo; echo "cd to workspace"
56-
cd $GITHUB_WORKSPACE
57-
echo; echo "listing"
58-
ls
59-
echo; echo "PNPM install"
60-
pnpm install
61-
62-
- name: Check spellings
63-
run: |
64-
pnpm spellcheck
1+
name: Spellcheck
2+
3+
on: pull_request
4+
5+
# Allow this job to clone the repo
6+
permissions:
7+
contents: read
8+
id-token: write
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
spellcheck:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
fail-fast: true
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v6
23+
24+
- name: Load versions
25+
run: cat .github/versions.env >> "$GITHUB_ENV"
26+
27+
- name: Install pnpm
28+
uses: pnpm/action-setup@v6
29+
with:
30+
version: ${{ env.PNPM_VERSION }}
31+
run_install: false
32+
33+
- name: Setup Node
34+
uses: actions/setup-node@v6
35+
with:
36+
node-version: ${{ env.NODE_VERSION }}
37+
cache: 'pnpm'
38+
cache-dependency-path: 'pnpm-lock.yaml'
39+
40+
- name: Get pnpm store directory
41+
shell: bash
42+
run: |
43+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
44+
45+
- uses: actions/cache@v5
46+
name: Setup pnpm cache
47+
with:
48+
path: ${{ env.STORE_PATH }}
49+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
50+
restore-keys: |
51+
${{ runner.os }}-pnpm-store-
52+
53+
- name: PNPM install
54+
run: |
55+
echo; echo "cd to workspace"
56+
cd $GITHUB_WORKSPACE
57+
echo; echo "listing"
58+
ls
59+
echo; echo "PNPM install"
60+
pnpm install
61+
62+
- name: Check spellings
63+
run: |
64+
pnpm spellcheck

0 commit comments

Comments
 (0)