File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,8 @@ jobs:
125
125
- ants
126
126
- fsl
127
127
- freesurfer
128
+ env :
129
+ SECRET : " "
128
130
steps :
129
131
- name : Get secret for corresponding repo
130
132
id : get_secret
@@ -138,13 +140,13 @@ jobs:
138
140
elif [ "${{ matrix.repo }}" == "freesurfer" ]; then
139
141
SECRET="${{ secrets.FREESURFER_PAT }}"
140
142
fi
141
- echo "SECRET=$SECRET" >> $GITHUB_OUTPUT
143
+ echo "SECRET=$SECRET" >> $GITHUB_ENV
142
144
143
145
- name : Trigger post-release on downstream repos
144
- if : github.event_name == 'release' && steps.get_secret.outputs .SECRET
146
+ if : github.event_name == 'release' && env .SECRET
145
147
run : |
146
- curl -XPOST -u "${{ steps.get_secret.outputs .SECRET }}" -H "Accept: application/vnd.github.everest-preview+json" \
148
+ curl -XPOST -u "${{ env .SECRET }}" -H "Accept: application/vnd.github.everest-preview+json" \
147
149
"https://api.github.com/repos/nipype/pydra-${{ matrix.repo }}/dispatches" \
148
150
-d '{"event_type": "create-post-release"}'
149
151
env :
150
- PAT : ${{ steps.get_secret.outputs .SECRET }}
152
+ PAT : ${{ env .SECRET }}
You can’t perform that action at this time.
0 commit comments