fix the way of defining the token var #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Trigger git submodule update in the docs repo | |
on: | |
push: | |
branches: | |
- add-workflow-docs-notification | |
workflow_dispatch: | |
jobs: | |
update_submodule_in_docs_repo: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Trigger git submodule update in the docs repo | |
env: | |
PARENT_REPO: wallarm/product-documentation | |
WORKFLOW_ID: 7113795232 | |
run: | | |
curl -X POST \ | |
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | |
-H "Accept: application/vnd.github.v3+json" \ | |
https://api.github.com/repos/${{ env.PARENT_REPO }}/actions/workflows/${{ env.WORKFLOW_ID }}/dispatches \ | |
-d '{}' |