Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create shim to run deno bids-validator #1942

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 2 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
7 changes: 5 additions & 2 deletions .github/workflows/deno_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,14 @@ jobs:
with:
name: main
path: main
- name: Commit to new branch
- name: Create shim, adjust version, and commit to new branch
yarikoptic marked this conversation as resolved.
Show resolved Hide resolved
run: |
mv main/main.js .
mv main/bids-validator.js .
git add main.js bids-validator.js
sed -i -e "s,version(\"alpha\"),version(\"${VERSION}.deno\"),g" bids-validator.js
yarikoptic marked this conversation as resolved.
Show resolved Hide resolved
echo -e '#!/usr/bin/env bash\n\ndeno run --allow-read --allow-write --allow-env --allow-net --allow-run "$(dirname "$0")"/bids-validator.js "$@"' >| bids-validator
chmod a+x bids-validator
git add main.js bids-validator.js bids-validator
git commit -m "BLD: $VERSION [skip ci]" || true
- name: Push
run: git push origin deno-build