Skip to content

Commit 7950fa0

Browse files
committed
post release trigger unified PAT
1 parent 5a04f9d commit 7950fa0

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

.github/workflows/ci-cd.yml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -122,31 +122,17 @@ jobs:
122122
matrix:
123123
repo:
124124
- afni
125-
- ants
126-
- fsl
127-
- freesurfer
128-
env:
129-
SECRET: ""
125+
# - ants
126+
# - fsl
127+
# - freesurfer
128+
# - mriqc
130129
steps:
131-
- name: Get secret for corresponding repo
132-
id: get_secret
133-
run: |
134-
if [ "${{ matrix.repo }}" == "afni" ]; then
135-
SECRET="${{ secrets.AFNI_PAT }}"
136-
elif [ "${{ matrix.repo }}" == "ants" ]; then
137-
SECRET="${{ secrets.ANTS_PAT }}"
138-
elif [ "${{ matrix.repo }}" == "fsl" ]; then
139-
SECRET="${{ secrets.FSL_PAT }}"
140-
elif [ "${{ matrix.repo }}" == "freesurfer" ]; then
141-
SECRET="${{ secrets.FREESURFER_PAT }}"
142-
fi
143-
echo "SECRET=$SECRET" >> $GITHUB_ENV
144130

145131
- name: Trigger post-release on downstream repos
146-
if: github.event_name == 'release' && env.SECRET
132+
if: github.event_name == 'release'
147133
run: |
148-
curl -XPOST -u "${{ env.SECRET }}" -H "Accept: application/vnd.github.everest-preview+json" \
134+
curl -XPOST -u "${{ env.POST_RELEASE_PAT }}" -H "Accept: application/vnd.github.everest-preview+json" \
149135
"https://api.github.com/repos/nipype/pydra-${{ matrix.repo }}/dispatches" \
150136
-d '{"event_type": "create-post-release"}'
151137
env:
152-
PAT: ${{ env.SECRET }}
138+
PAT: ${{ env.POST_RELEASE_PAT }}

0 commit comments

Comments
 (0)