Skip to content

Update cpanfile.snapshot #171

Update cpanfile.snapshot

Update cpanfile.snapshot #171

Workflow file for this run

name: Update cpanfile.snapshot
on:
schedule:
- cron: "1 15 * * 0"
workflow_dispatch:
jobs:
update-dep:
runs-on: "ubuntu-20.04"
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.METACPAN_BOT_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::Snapshot
--resolver metacpan
--show-build-log-on-failure
--local-lib-contained=local
- name: Install deps
run: >
perl -Ilocal/lib/perl5 $RUNNER_TEMP/cpm
install
--cpanfile cpanfile
--resolver metacpan
--show-build-log-on-failure
--local-lib-contained=local
- name: Install forced deps
run: >
curl -sL https://cpanmin.us/
| perl -
--cpanfile cpanfile.forced
--showdeps --installdeps
-L local
-q
.
| $RUNNER_TEMP/cpm
install
--resolver metacpan
--show-build-log-on-failure
--local-lib-contained=local
--reinstall
-
- name: Maybe update cpanfile.snapshot
run: perl -Ilocal/lib/perl5 local/bin/carton
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.METACPAN_BOT_TOKEN }}
commit-message: Update cpanfile.snapshot
title: Update cpanfile.snapshot
author: MetaCPAN Bot <[email protected]>
committer: MetaCPAN Bot <[email protected]>
body: |
[GitHub Action Run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
push-to-fork: metacpan-bot/metacpan-web
branch: update-cpanfile-snapshot