Skip to content

Commit

Permalink
Adjust workflow to apply patches and pushed patched version as well f…
Browse files Browse the repository at this point in the history
…or introspection
  • Loading branch information
yarikoptic committed Apr 26, 2024
1 parent dd17442 commit 34bf7dd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/validate_bids-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,25 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: "Apply patches for BIDS-2.0"
run: |
set -o pipefail
tools/bids-2.0/apply_all 2>&1 | tee /tmp/patch.log
- name: "Push patched version online for possible introspection"
if: contains(github.ref, 'refs/heads/bids-2.0')
run: |
set -x
commit=$(git rev-parse HEAD)
branch=$(git rev-parse --abbrev-ref HEAD)-patched
git checkout -b "$branch"
git add .
{
echo -e "Applied patches for BIDS-2.0 to $commit\n";
cat /tmp/patch.log";
} | git commit -F -
git push -f origin "$branch"
# Setup Python with bst
- uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit 34bf7dd

Please sign in to comment.