Skip to content

Commit 2f07697

Browse files
committed
Create a github CI bot to sync up all the repos
1 parent 055c220 commit 2f07697

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/autoupdate.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Update
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
update:
10+
strategy:
11+
matrix:
12+
project:
13+
- 'scipp/esssans'
14+
- 'scipp/sciline'
15+
- 'scipp/scippnexus'
16+
- 'scipp/scippneutron'
17+
- 'scipp/plopp'
18+
- 'scipp/essnmx'
19+
- 'scipp/essreduce'
20+
- 'scipp/beamlime'
21+
- 'scipp/essspectroscopy'
22+
- 'scipp/chexus'
23+
- 'scipp/ess'
24+
- 'scipp/chexus'
25+
- 'scipp/essreflectometry'
26+
- 'scipp/essdiffraction'
27+
- 'scipp/esspolarization'
28+
- 'scipp/scippuncertainty'
29+
- 'scipp/essimaging'
30+
31+
name: Update downstream projects
32+
runs-on: 'ubuntu-latest'
33+
steps:
34+
- uses: actions/checkout@v4
35+
with:
36+
token: ${{ secrets.PAT }}
37+
repository: ${{ matrix.project }}
38+
- uses: actions/setup-python@v5
39+
with:
40+
python-version: '3.X'
41+
- run: pip install copier
42+
- run: copier update --skip-answered --vcs-ref=HEAD --conflict=rej
43+
- name: Create Pull Request
44+
uses: peter-evans/create-pull-request@v6
45+
with:
46+
token: ${{ secrets.PAT }}
47+
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
48+
title: Sync ${{ matrix.project }} with copier template
49+
body: |
50+
This PR updates the project to the latest version of scipp's [copier-template](https://github.com/scipp/copier_template).
51+
Remember to check for any conflicts and resolve them.

0 commit comments

Comments
 (0)