|
7 | 7 | update-dep: |
8 | 8 | runs-on: 'ubuntu-24.04' |
9 | 9 | steps: |
| 10 | + - name: libcmark-dev |
| 11 | + run: sudo apt-get install -y -f --no-install-recommends libcmark-dev |
10 | 12 | - name: Generate Auth Token |
11 | 13 | uses: actions/create-github-app-token@v2 |
12 | 14 | id: app-token |
13 | 15 | with: |
14 | 16 | app-id: ${{ secrets.APP_ID }} |
15 | 17 | 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 }} |
21 | 18 | - uses: actions/checkout@v4 |
22 | 19 | with: |
23 | 20 | token: ${{ steps.app-token.outputs.token }} |
24 | | - - name: Set up installation local::lib |
25 | | - run: | |
26 | | - mkdir -p $RUNNER_TEMP/perl5/bin |
27 | | - mkdir -p $RUNNER_TEMP/perl5/lib/perl5 |
28 | | - echo "$RUNNER_TEMP/perl5/bin" >> "$GITHUB_PATH" |
29 | | - echo "PERL5LIB=$RUNNER_TEMP/perl5/lib/perl5" >> "$GITHUB_ENV" |
30 | | - - name: Get cpm |
31 | | - run: | |
32 | | - curl -sL -o $RUNNER_TEMP/perl5/bin/cpm https://raw.githubusercontent.com/skaji/cpm/main/cpm |
33 | | - chmod +x $RUNNER_TEMP/perl5/bin/cpm |
34 | | - - name: libcmark-dev |
35 | | - run: sudo apt-get install -y -f --no-install-recommends libcmark-dev |
36 | | - - name: Install cpanm, Carton, and Carton::Snapshot |
37 | | - run: > |
38 | | - cpm install |
39 | | - App::cpanminus |
40 | | - Carton |
41 | | - Carton::Snapshot |
42 | | - --without-test |
43 | | - --show-build-log-on-failure |
44 | | - --local-lib-contained=$RUNNER_TEMP/perl5 |
45 | | - - name: Install forced deps |
46 | | - run: > |
47 | | - cpanm |
48 | | - --cpanfile cpanfile.forced |
49 | | - --showdeps --installdeps |
50 | | - -L local |
51 | | - -q |
52 | | - . |
53 | | - | cpm install |
54 | | - --without-test |
55 | | - --resolver metacpan |
56 | | - --show-build-log-on-failure |
57 | | - --local-lib-contained=local |
58 | | - --reinstall |
59 | | - - |
60 | | - - name: Install deps |
61 | | - run: > |
62 | | - cpm install |
63 | | - --cpanfile cpanfile |
64 | | - --resolver metacpan |
65 | | - --show-build-log-on-failure |
66 | | - --local-lib-contained=local |
67 | | - --with-develop |
68 | | - - name: Maybe update cpanfile.snapshot |
69 | | - run: carton |
| 21 | + - uses: metacpan/metacpan-actions/update-snapshot@master |
70 | 22 | - name: Create Pull Request |
71 | 23 | uses: peter-evans/create-pull-request@v7 |
72 | 24 | with: |
73 | 25 | token: ${{ steps.app-token.outputs.token }} |
74 | 26 | commit-message: Update cpanfile.snapshot |
75 | 27 | title: Update cpanfile.snapshot |
76 | | - author: ${{ steps.git-user.outputs.user-full }} |
77 | | - committer: ${{ steps.git-user.outputs.user-full }} |
| 28 | + sign-commits: true |
78 | 29 | body: | |
79 | 30 | [GitHub Action Run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) |
80 | 31 | branch: update-cpanfile-snapshot |
0 commit comments