|
9 | 9 | container: |
10 | 10 | image: perl:5.22-buster |
11 | 11 | steps: |
12 | | - - name: install jq |
13 | | - run: | |
14 | | - apt-get update && apt-get install -y jq |
15 | 12 | - name: Generate Auth Token |
16 | | - id: auth-token |
17 | | - uses: jamestrousdale/github-app-jwt-token@0.1.4 |
| 13 | + uses: actions/create-github-app-token@v2 |
| 14 | + id: app-token |
18 | 15 | with: |
19 | 16 | app-id: ${{ secrets.APP_ID }} |
20 | 17 | private-key: ${{ secrets.APP_PRIVATE_KEY }} |
21 | | - - id: git-user |
22 | | - name: Set up git user |
23 | | - uses: haarg/setup-git-user@v1 |
24 | | - with: |
25 | | - jwt: ${{ steps.auth-token.outputs.jwt }} |
26 | 18 | - uses: actions/checkout@v4 |
27 | 19 | with: |
28 | | - token: ${{ steps.auth-token.outputs.access-token }} |
29 | | - - name: Set up installation local::lib |
30 | | - run: | |
31 | | - mkdir -p $RUNNER_TEMP/perl5/bin |
32 | | - mkdir -p $RUNNER_TEMP/perl5/lib/perl5 |
33 | | - echo "$RUNNER_TEMP/perl5/bin" >> "$GITHUB_PATH" |
34 | | - echo "PERL5LIB=$RUNNER_TEMP/perl5/lib/perl5" >> "$GITHUB_ENV" |
35 | | - - name: Get cpm |
36 | | - run: | |
37 | | - curl -sL -o $RUNNER_TEMP/perl5/bin/cpm https://raw.githubusercontent.com/skaji/cpm/main/cpm |
38 | | - chmod +x $RUNNER_TEMP/perl5/bin/cpm |
39 | | - - name: Install Carton and Carton::Snapshot |
40 | | - run: > |
41 | | - cpm install |
42 | | - Carton |
43 | | - Carton::Snapshot |
44 | | - --without-test |
45 | | - --show-build-log-on-failure |
46 | | - --local-lib-contained=$RUNNER_TEMP/perl5 |
47 | | - - name: Install deps |
48 | | - run: > |
49 | | - cpm install |
50 | | - --cpanfile cpanfile |
51 | | - --resolver metacpan |
52 | | - --show-build-log-on-failure |
53 | | - --local-lib-contained=local |
54 | | - - name: Maybe update cpanfile.snapshot |
55 | | - run: carton |
| 20 | + token: ${{ steps.app-token.outputs.token }} |
| 21 | + - name: Update cpanfile.snapshot |
| 22 | + uses: metacpan/metacpan-actions/update-snapshot@master |
56 | 23 | - name: Create Pull Request |
57 | 24 | uses: peter-evans/create-pull-request@v7 |
58 | 25 | with: |
59 | | - token: ${{ steps.auth-token.outputs.access-token }} |
| 26 | + token: ${{ steps.app-token.outputs.token }} |
60 | 27 | commit-message: Update cpanfile.snapshot |
61 | 28 | title: Update cpanfile.snapshot |
62 | | - author: ${{ steps.git-user.outputs.user-full }} |
63 | | - committer: ${{ steps.git-user.outputs.user-full }} |
| 29 | + sign-commits: true |
64 | 30 | body: | |
65 | 31 | [GitHub Action Run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) |
66 | 32 | branch: update-cpanfile-snapshot |
0 commit comments