Skip to content

Commit 2bd607c

Browse files
authored
PAss secret correctly to action
1 parent aadeb4c commit 2bd607c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ jobs:
207207
208208
- name: notify dashboard
209209
if: always() && startsWith(github.repository, 'sofa-framework') && startsWith(github.ref, 'refs/heads/master') # we are not on a fork and on master
210+
env:
211+
DASH_AUTH: ${{ secrets.PLUGIN_DASH }}
210212
shell: bash
211213
run: |
212214
test_status=$([ '${{ steps.test-sofa.outcome }}' == 'success' ] && \
@@ -224,7 +226,7 @@ jobs:
224226
echo 'true' || echo 'false')
225227
226228
227-
curl -X POST -H "X-API-KEY: ${{ secrets.PLUGIN_DASH }}" -H "Content-Type: application/json" -d \
229+
curl -X POST -H "X-API-KEY: $DASH_AUTH" -H "Content-Type: application/json" -d \
228230
"{\"id\":\"$(echo "${{ github.repository }}" | awk -F/ '{ print $2 }')\",\
229231
\"github_ref\":\"${{ github.sha }}\",\
230232
\"url\":\"https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}\",\

0 commit comments

Comments
 (0)