Skip to content

Commit 11ab785

Browse files
committed
set up a weekly cron job to run copier update
1 parent 81712ad commit 11ab785

File tree

2 files changed

+25
-50
lines changed

2 files changed

+25
-50
lines changed

.github/workflows/autoupdate.yml

-50
This file was deleted.

template/.github/workflows/copier.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Copier template sync
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 1 * * 1'
7+
8+
jobs:
9+
update:
10+
name: Sync with copier template
11+
runs-on: 'ubuntu-latest'
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.X'
17+
- run: pip install copier
18+
- run: copier update --skip-answered --vcs-ref=HEAD --conflict=rej
19+
- name: Create Pull Request
20+
uses: peter-evans/create-pull-request@v6
21+
with:
22+
title: '[CRON] Sync with copier template'
23+
body: |
24+
This PR updates the project to the latest version of scipp's [copier-template](https://github.com/scipp/copier_template).
25+
Remember to check for any conflicts and resolve them.

0 commit comments

Comments
 (0)