File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 5555 path : _public
5656 - name : Deploy to GitHub Pages
5757 id : deployment
58- uses : actions/deploy-pages@v4
58+ uses : actions/deploy-pages@v4
59+ # force building the website with the new UIs
60+ - name : Trigger Workflow in Another Repository
61+ run : |
62+ repo_owner="LabVIEWCommunityTraining"
63+ repo_name="www"
64+ workflow_file="publish-website-on-gh-pages.yml"
65+ branch="main"
66+ json_data="{\"ref\": \"$branch\"}"
67+ curl -L \
68+ -X POST \
69+ -H "Accept: application/vnd.github+json" \
70+ -H "Authorization: Bearer ${{ secrets.WEBSITE_DELIVERY_TRIGGER }}" \
71+ -H "X-GitHub-Api-Version: 2022-11-28" \
72+ https://api.github.com/repos/$repo_owner/$repo_name/actions/workflows/$workflow_file/dispatches \
73+ -d "$json_data"
You can’t perform that action at this time.
0 commit comments