Skip to content

Sync neuropixels_probe_features from ProbeTable #13

Sync neuropixels_probe_features from ProbeTable

Sync neuropixels_probe_features from ProbeTable #13

name: Sync neuropixels_probe_features from ProbeTable
on:
schedule:
- cron: '0 0 * * 1' # Every Monday at 00:00 UTC
workflow_dispatch:
jobs:
copy-file:
runs-on: ubuntu-latest
steps:
- name: Checkout current repository
uses: actions/checkout@v4
- name: Copy file from external repo
run: |
# Download the file directly
curl -o src/probeinterface/resources/neuropixels_probe_features.json \
https://raw.githubusercontent.com/billkarsh/ProbeTable/refs/heads/main/Tables/probe_features.json
- name: Commit changes if any
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add src/probeinterface/resources/neuropixels_probe_features.json
# Only commit if there are changes
git diff --staged --quiet || git commit -m "Update neuropixels_probe_features from ProbeTable"
git push