File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 66
66
steps :
67
67
- uses : actions/checkout@v4
68
68
69
+ - name : " Apply patches for BIDS-2.0"
70
+ run : tools/bids-2.0/apply_all
71
+
69
72
- name : " Set up Python"
70
73
uses : actions/setup-python@v5
71
74
with :
Original file line number Diff line number Diff line change 33
33
steps :
34
34
- uses : actions/checkout@v4
35
35
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
+
36
55
# Setup Python with bst
37
56
- uses : actions/setup-python@v5
38
57
with :
You can’t perform that action at this time.
0 commit comments