-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (51 loc) · 1.73 KB
/
update_listing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
name: Update datasets
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [main]
pull_request:
branches: ['*']
schedule:
- cron: 0 0 * * 1 # every monday
jobs:
update_listing:
strategy:
fail-fast: false
matrix:
python-version: ['3.11']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y git-annex
python -m pip install --upgrade pip
pip install .
cd tools && pip install -r requirements.txt
- name: Post-install
run: |
git config --global --add user.name "Ford Escort"
git config --global --add user.email [email protected]
- name: Update datasets
run: |
cd tools && make update
git status
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: BIDS schema update
base: main
delete-branch: true
title: '[BOT] update datasets listing'
body: done via this [GitHub Action](https://github.com/neurodatascience/cohort_creator/tree/main/.github/workflows/update_listing.yml)