Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .github/workflows/copy_probe_features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,27 @@ jobs:
https://raw.githubusercontent.com/billkarsh/ProbeTable/refs/heads/main/Tables/probe_features.json

- name: Commit changes if any
id: commit
run: |
git config --local user.email "action@github.com"
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
if git diff --staged --quiet; then
echo "No changes to commit"
echo "changes=false" >> $GITHUB_OUTPUT
else
git commit -m "Update neuropixels_probe_features from ProbeTable"
echo "changes=true" >> $GITHUB_OUTPUT
fi

- name: Make PR with updated probe features
if: steps.commit.outputs.changes == 'true'
uses: peter-evans/create-pull-request@v7
with:
title: "Update Neuropixels probe features"
body: "This PR updates the probe features JSON file from the ProbeTable repository."
branch-suffix: short-commit-hash
base: "main"