Skip to content

Commit 1f2dd52

Browse files
authored
Merge pull request #249 from ccamel/ci/fix-capture
Ci/fix capture
2 parents a57d4ff + 755d924 commit 1f2dd52

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/capture-website.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ concurrency:
1313
jobs:
1414
capture-website:
1515
runs-on: ubuntu-22.04
16+
env:
17+
SCREENSHOT_FILE: screenshot.webp
1618
steps:
1719
- name: Check out repository
1820
uses: actions/checkout@v4
@@ -28,11 +30,16 @@ jobs:
2830
git_user_signingkey: true
2931
git_commit_gpgsign: true
3032

33+
- name: Install pnpm
34+
uses: pnpm/action-setup@v4
35+
with:
36+
version: 9.1.2
37+
3138
- name: Setup node environment
3239
uses: actions/setup-node@v4
3340
with:
3441
node-version: 18.17
35-
cache: npm
42+
cache: "pnpm"
3643

3744
- name: Screenshot Website
3845
env:
@@ -50,6 +57,7 @@ jobs:
5057
- name: Commit changes
5158
uses: stefanzweifel/git-auto-commit-action@v5
5259
with:
60+
file_pattern: ${{ env.SCREENSHOT_FILE }}
5361
commit_user_name: ${{ secrets.USER_NAME }}
5462
commit_user_email: ${{ secrets.USER_EMAIL }}
5563
commit_author: ${{ secrets.USER_NAME }} <${{ secrets.USER_EMAIL }}>

screenshot.webp

84.1 KB
Loading

0 commit comments

Comments
 (0)