8000 Bugfixes with package generation by tclose · Pull Request #16 · nipype/nipype2pydra · GitHub
[go: up one dir, main page]

Skip to content

Bugfixes with package generation #16

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 10 commits into from
Mar 20, 2024
Prev Previous commit
Next Next commit
configured secret to be saved in env var rather than output
  • Loading branch information
tclose committed Mar 19, 2024
commit 317b43bb45d387f2bd0ffdb15d291351f6dc2546
10 changes: 6 additions & 4 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ jobs:
- ants
- fsl
- freesurfer
env:
SECRET: ""
steps:
- name: Get secret for corresponding repo
id: get_secret
Expand All @@ -138,13 +140,13 @@ jobs:
elif [ "${{ matrix.repo }}" == "freesurfer" ]; then
SECRET="${{ secrets.FREESURFER_PAT }}"
fi
echo "SECRET=$SECRET" >> $GITHUB_OUTPUT
echo "SECRET=$SECRET" >> $GITHUB_ENV

- name: Trigger post-release on downstream repos
if: github.event_name == 'release' && steps.get_secret.outputs.SECRET
if: github.event_name == 'release' && env.SECRET
run: |
curl -XPOST -u "${{ steps.get_secret.outputs.SECRET }}" -H "Accept: application/vnd.github.everest-preview+json" \
curl -XPOST -u "${{ env.SECRET }}" -H "Accept: application/vnd.github.everest-preview+json" \
"https://api.github.com/repos/nipype/pydra-${{ matrix.repo }}/dispatches" \
-d '{"event_type": "create-post-release"}'
env:
PAT: ${{ steps.get_secret.outputs.SECRET }}
PAT: ${{ env.SECRET }}
0