Skip to content

Commit ab802fb

Browse files
committed
test renamed token [documentation]
1 parent e0e46ab commit ab802fb

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/on_push.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,10 @@ jobs:
5858
5959
- name: Trigger Workflow in documentation builder Repository
6060
run: |
61-
# Set the required variables
62-
repo_owner="alchemy-fr"
63-
repo_name="phrasea-documentation-builder"
64-
event_type="trigger-workflow"
65-
6661
curl -L \
6762
-X POST \
6863
-H "Accept: application/vnd.github+json" \
69-
-H "Authorization: Bearer ${{ secrets.PAT }}" \
64+
-H "Authorization: Bearer ${{ secrets.DOCUMENTATION_BUILDER_TOKEN }}" \
7065
-H "X-GitHub-Api-Version: 2022-11-28" \
71-
https://api.github.com/repos/$repo_owner/$repo_name/dispatches \
72-
-d "{\"event_type\": \"$event_type\",\"client_payload\": {\"PHRASEA_REFNAME\": \"${{ github.ref_name }}\", \"PHRASEA_REFTYPE\": \"${{ github.ref_type }}\", \"PHRASEA_DATETIME\": \"${{ env.DATETIME }}\"}}"
66+
https://api.github.com/repos/alchemy-fr/phrasea-documentation-builder \
67+
-d "{\"event_type\": \"trigger-workflow\",\"client_payload\": {\"PHRASEA_REFNAME\": \"${{ github.ref_name }}\", \"PHRASEA_REFTYPE\": \"${{ github.ref_type }}\", \"PHRASEA_DATETIME\": \"${{ env.DATETIME }}\"}}"

0 commit comments

Comments
 (0)