Skip to content

Commit 03e33bc

Browse files
committed
Adjust workflows to apply patches and pushed patched version as well for introspection
1 parent dd17442 commit 03e33bc

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/schemacode_ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ jobs:
6666
steps:
6767
- uses: actions/checkout@v4
6868

69+
- name: "Apply patches for BIDS-2.0"
70+
run: tools/bids-2.0/apply_all
71+
6972
- name: "Set up Python"
7073
uses: actions/setup-python@v5
7174
with:

.github/workflows/validate_bids-examples.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,25 @@ jobs:
3333
steps:
3434
- uses: actions/checkout@v4
3535

36+
- name: "Apply patches for BIDS-2.0"
37+
run: |
38+
set -o pipefail
39+
tools/bids-2.0/apply_all 2>&1 | tee /tmp/patch.log
40+
41+
- name: "Push patched version online for possible introspection"
42+
# if: contains(github.ref, 'refs/heads/bids-2.0')
43+
run: |
44+
set -x
45+
commit=$(git rev-parse HEAD)
46+
branch=$(git rev-parse --abbrev-ref HEAD)-patched
47+
git checkout -b "$branch"
48+
git add .
49+
{
50+
echo -e "Applied patches for BIDS-2.0 to $commit\n";
51+
cat /tmp/patch.log";
52+
} | git commit -F -
53+
git push -f origin "$branch"
54+
3655
# Setup Python with bst
3756
- uses: actions/setup-python@v5
3857
with:

0 commit comments

Comments
 (0)