Skip to content

Commit

Permalink
Add workflow to create pull requests with cpanfile.snapshot updates
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Apr 17, 2021
1 parent 2d1aa5d commit b88f0e6
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/update-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Update cpanfile.snapshot
on:
schedule:
- cron: "1 15 * * 0"
workflow_dispatch:
jobs:
update-dep:
runs-on: "ubuntu-20.04"
steps:
- uses: actions/checkout@v2
- name: Install Carton
run: >
curl -sL https://git.io/cpm | perl -
install -g Carton
--show-build-log-on-failure
- name: Install deps
run: >
curl -sL https://git.io/cpm | perl -
install
--cpanfile cpanfile
--resolver metacpan
--show-build-log-on-failure
--local-lib-contained=local
- name: Maybe update cpanfile.snapshot
run: carton
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: Update cpanfile.snapshot
title: Update cpanfile.snapshot
body: |
Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
branch: update-cpanfile-snapshot

0 comments on commit b88f0e6

Please sign in to comment.