Skip to content

Commit

Permalink
update update-snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Aug 10, 2023
1 parent 5535a91 commit 515126a
Showing 1 changed file with 34 additions and 6 deletions.
40 changes: 34 additions & 6 deletions .github/workflows/update-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,42 @@ jobs:
container:
image: perl:5.36
steps:
- uses: actions/checkout@v3
- name: Generate Auth Token
id: auth-token
uses: jamestrousdale/[email protected]
with:
token: ${{ secrets.METACPAN_BOT_TOKEN }}
- name: Install carton
uses: perl-actions/install-with-cpm@stable
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- id: git-user
name: Set up git user
uses: haarg/setup-git-user@v1
with:
sudo: false
install: Carton
jwt: ${{ steps.auth-token.outputs.jwt }}
- uses: actions/checkout@v3
with:
token: ${{ steps.auth-token.outputs.auth-token }}

- name: Get cpm
run: |
curl -sL -o $RUNNER_TEMP/cpm https://git.io/cpm
chmod +x $RUNNER_TEMP/cpm
- name: Install Carton::Snapshot
run: >
$RUNNER_TEMP/cpm
install
Carton
Carton::Snapshot
--resolver metacpan
--show-build-log-on-failure
--local-lib=$RUNNER_TEMP/perl5
- name: Install deps
run: >
perl -I$RUNNER_TEMP/perl5/lib/perl5 $RUNNER_TEMP/cpm
install
--cpanfile cpanfile
--resolver metacpan
--show-build-log-on-failure
--local-lib-contained=local
- name: Install deps
uses: perl-actions/install-with-cpm@stable
with:
Expand Down

0 comments on commit 515126a

Please sign in to comment.