Skip to content

Commit 1ef7cb0

Browse files
authored
Merge pull request #1012 from metacpan/oalders/snapshot-workflow
Add workflow to create pull requests with cpanfile.snapshot updates
2 parents 2d1aa5d + b88f0e6 commit 1ef7cb0

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/update-snapshot.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Update cpanfile.snapshot
2+
on:
3+
schedule:
4+
- cron: "1 15 * * 0"
5+
workflow_dispatch:
6+
jobs:
7+
update-dep:
8+
runs-on: "ubuntu-20.04"
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Install Carton
12+
run: >
13+
curl -sL https://git.io/cpm | perl -
14+
install -g Carton
15+
--show-build-log-on-failure
16+
- name: Install deps
17+
run: >
18+
curl -sL https://git.io/cpm | perl -
19+
install
20+
--cpanfile cpanfile
21+
--resolver metacpan
22+
--show-build-log-on-failure
23+
--local-lib-contained=local
24+
- name: Maybe update cpanfile.snapshot
25+
run: carton
26+
- name: Create Pull Request
27+
uses: peter-evans/create-pull-request@v3
28+
with:
29+
commit-message: Update cpanfile.snapshot
30+
title: Update cpanfile.snapshot
31+
body: |
32+
Auto-generated by [create-pull-request][1]
33+
34+
[1]: https://github.com/peter-evans/create-pull-request
35+
branch: update-cpanfile-snapshot

0 commit comments

Comments
 (0)