Skip to content

Commit 9769824

Browse files
committed
revise snapshot updating
1 parent 67d0cf4 commit 9769824

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/update-snapshot.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ jobs:
1313
with:
1414
app-id: ${{ secrets.APP_ID }}
1515
private-key: ${{ secrets.APP_PRIVATE_KEY }}
16-
- id: git-user
17-
name: Set up git user
18-
uses: haarg/setup-git-user@v1
19-
with:
20-
app: ${{ steps.app-token.outputs.app-slug }}
2116
- uses: actions/checkout@v4
2217
with:
2318
token: ${{ steps.app-token.outputs.token }}
@@ -36,27 +31,25 @@ jobs:
3631
- name: Install cpanm, Carton, and Carton::Snapshot
3732
run: >
3833
cpm install
39-
App::cpanminus
4034
Carton
4135
Carton::Snapshot
4236
--without-test
4337
--show-build-log-on-failure
4438
--local-lib-contained=$RUNNER_TEMP/perl5
39+
- name: Get forced prereqs
40+
id: prereqs-forced
41+
uses: perl-actions/get-prereqs@v1
42+
with:
43+
sources: cpanfile.forced
4544
- name: Install forced deps
4645
run: >
47-
cpanm
48-
--cpanfile cpanfile.forced
49-
--showdeps --installdeps
50-
-L local
51-
-q
52-
.
53-
| cpm install
46+
cpm install
5447
--without-test
5548
--resolver metacpan
5649
--show-build-log-on-failure
5750
--local-lib-contained=local
5851
--reinstall
59-
-
52+
${{ steps.prereqs-forced.outputs.prereqs }}
6053
- name: Install deps
6154
run: >
6255
cpm install
@@ -73,8 +66,7 @@ jobs:
7366
token: ${{ steps.app-token.outputs.token }}
7467
commit-message: Update cpanfile.snapshot
7568
title: Update cpanfile.snapshot
76-
author: ${{ steps.git-user.outputs.user-full }}
77-
committer: ${{ steps.git-user.outputs.user-full }}
69+
sign-commits: true
7870
body: |
7971
[GitHub Action Run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
8072
branch: update-cpanfile-snapshot

0 commit comments

Comments
 (0)