Skip to content

Update datasets

Update datasets #257

---
name: Update datasets
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
schedule:
- cron: 0 0 * * 1 # every monday
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
update_listing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
allow-prereleases: true
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y git-annex
python -m pip install --upgrade pip
pip install --editable .[dev]
- name: Post-install
run: |
git config --global --add user.name "Ford Escort"
git config --global --add user.email [email protected]
- name: Update datasets
run: cohort_creator update
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
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)