8000 moved download of task template into separate job to avoid issues wit… by tclose · Pull Request #19 · nipype/nipype2pydra · GitHub
[go: up one dir, main page]

Skip to content

moved download of task template into separate job to avoid issues wit… #19

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

Merged
merged 13 commits into from
May 17, 2024
Merged
Prev Previous commit
Next Next commit
task template debugging
  • Loading branch information
tclose committed May 17, 2024
commit 8e1c0d11d5d1fcc3809b0922ebfa5517e81e53bf
17 changes: 12 additions & 5 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ jobs:
LATEST=$(curl -s https://api.github.com/repos/nipype/pydra-tasks-template/releases/latest | grep tag_name | awk -F\" '{print $4}')
curl -Lo pydra-tasks-template.tar.gz https://github.com/nipype/pydra-tasks-template/archive/refs/tags/$LATEST.tar.gz
tar xzf pydra-tasks-template.tar.gz
ls
mv pydra-tasks-template-${LATEST#v} $HOME/pydra-tasks-template
ls $HOME
rm pydra-tasks-template.tar.gz
mv pydra-tasks-template-${LATEST#v} pydra-tasks-template
tar czf $HOME/pydra-tasks-template.tar.gz pydra-tasks-template


- uses: actions/upload-artifact@v4
with:
name: tasks-template
path: $HOME/pydra-tasks-template
path: $HOME/pydra-tasks-template.tar.gz

test:
needs: [download-task-template]
Expand All @@ -52,7 +53,13 @@ jobs:
uses: actions/download-artifact@v4
with:
name: tasks-template
path: $HOME/pydra-tasks-template
path: $HOME/pydra-tasks-template.tar.gz

- name: Extract the pydra-tasks-template
run: |
pushd $HOME
tar xzf pydra-tasks-template.tar.gz
popd

- name: Unset header
# checkout@v2 adds a header that makes branch protection report errors
Expand Down
0