You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/scheduled_updates.yml
+36-11Lines changed: 36 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
name: SPEC0
1
+
name: Scheduled updates
2
2
3
3
on: # yamllint disable-line rule:truthy
4
4
schedule:
@@ -12,12 +12,24 @@ on: # yamllint disable-line rule:truthy
12
12
type: boolean
13
13
14
14
jobs:
15
-
update_versions:
15
+
update:
16
16
permissions:
17
17
contents: write
18
18
pull-requests: write
19
-
name: Update dependency versions
19
+
name: ${{ matrix.name }}
20
20
runs-on: ubuntu-latest
21
+
strategy:
22
+
fail-fast: false
23
+
matrix:
24
+
include:
25
+
- id: spec_zero
26
+
name: Update dependency specifiers
27
+
title: 'MAINT: Update dependency specifiers'
28
+
body: '*Adjustments may need to be made to shims in `mne/fixes.py` and elsewhere in this or another PR. `make -C tools/dev dep` is a good starting point for finding potential updates.*'
29
+
- id: prek_auto_update
30
+
name: Update pre-commit hooks
31
+
title: 'MAINT: Update pre-commit hook versions'
32
+
body: '*Created by `prek auto-update`. The updated hooks were then run over the whole repo, so any reformatting they now do is included here.*'
21
33
env:
22
34
GH_TOKEN: ${{ secrets.MNE_BOT_TOKEN }}
23
35
GITHUB_TOKEN: ${{ secrets.MNE_BOT_TOKEN }}
@@ -28,6 +40,8 @@ jobs:
28
40
- uses: actions/checkout@v7.0.1
29
41
with:
30
42
persist-credentials: true
43
+
- name: Get commit message
44
+
run: echo "COMMIT_MESSAGE=$(git show -s --format=%s ${{ github.sha }})" | tee -a ${GITHUB_ENV}
31
45
- name: Triage SSH
32
46
run: |
33
47
if [[ "${{ inputs.ssh }}" == "true" ]] || [[ "$COMMIT_MESSAGE" == *"[actions ssh]"* ]]; then
@@ -49,10 +63,13 @@ jobs:
49
63
- name: Install dependencies
50
64
run: uv pip install -e . packaging requests tomlkit prek
PR_NUM=$(gh pr create --base main --head spec_zero --title "MAINT: Update dependency specifiers" --body "Created by spec_zero [GitHub action](https://github.com/mne-tools/mne-python/actions/runs/${{ github.run_id }}). <br> <br> *Adjustments may need to be made to shims in \`mne/fixes.py\` and elswhere in this or another PR. \`make -C tools/dev dep\` is a good starting point for finding potential updates.*")
104
+
git checkout -b "$BRANCH"
105
+
git add -A # doc/changes/dev/dependency.rst is a new file, the others are changed
106
+
git commit -m "mne[bot]: ${TITLE#MAINT: }"
107
+
git push origin "$BRANCH"
108
+
printf '%s\n\n%s\n' \
109
+
"Created by the \`$BRANCH\` job of this [GitHub Action run]($RUN_URL)." \
0 commit comments