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 }}
@@ -29,34 +24,34 @@ jobs:
2924 echo "PERL5LIB=$RUNNER_TEMP/perl5/lib/perl5" >> "$GITHUB_ENV"
3025 - name : Get cpm
3126 run : |
32- curl -sL -o $RUNNER_TEMP/perl5/bin/cpm https://raw.githubusercontent.com/skaji/cpm/main/cpm
27+ curl -sLf -o $RUNNER_TEMP/perl5/bin/cpm https://raw.githubusercontent.com/skaji/cpm/main/cpm
3328 chmod +x $RUNNER_TEMP/perl5/bin/cpm
3429 - name : libcmark-dev
3530 run : sudo apt-get install -y -f --no-install-recommends libcmark-dev
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
45+ env :
46+ PREREQS : ${{ steps.prereqs-forced.outputs.prereqs }}
4647 run : >
47- cpanm
48- --cpanfile cpanfile.forced
49- --showdeps --installdeps
50- -L local
51- -q
52- .
53- | cpm install
48+ cpm install
5449 --without-test
5550 --resolver metacpan
5651 --show-build-log-on-failure
5752 --local-lib-contained=local
5853 --reinstall
59- -
54+ $PREREQS
6055 - name : Install deps
6156 run : >
6257 cpm install
7368 token : ${{ steps.app-token.outputs.token }}
7469 commit-message : Update cpanfile.snapshot
7570 title : Update cpanfile.snapshot
76- author : ${{ steps.git-user.outputs.user-full }}
77- committer : ${{ steps.git-user.outputs.user-full }}
71+ sign-commits : true
7872 body : |
7973 [GitHub Action Run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
8074 branch : update-cpanfile-snapshot
0 commit comments