Skip to content

Update cpanfile.snapshot #129

Update cpanfile.snapshot

Update cpanfile.snapshot #129

name: Update cpanfile.snapshot
on:
schedule:
- cron: "1 15 * * 0"
workflow_dispatch:
jobs:
update-dep:
runs-on: "ubuntu-22.04"
container:
image: perl:5.36
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.METACPAN_BOT_TOKEN }}
- name: Install deps
uses: perl-actions/install-with-cpm@stable
with:
cpanfile: cpanfile
sudo: false
args: >
--resolver metacpan
--show-build-log-on-failure
--local-lib-contained=local
- name: Install carton
uses: perl-actions/install-with-cpm@stable
with:
sudo: false
install: Carton
- name: Maybe update cpanfile.snapshot
run: carton
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.METACPAN_BOT_TOKEN }}
commit-message: Update cpanfile.snapshot
title: Update cpanfile.snapshot
author: MetaCPAN Bot <bot@metacpan.org>
committer: MetaCPAN Bot <bot@metacpan.org>
body: |
[GitHub Action Run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
push-to-fork: metacpan-bot/metacpan-api
branch: update-cpanfile-snapshot