Skip to content

Commit 870e662

Browse files
action
force the website to be rebuilt after UI modification
1 parent 5e97ace commit 870e662

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/build-ui.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,19 @@ jobs:
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"

0 commit comments

Comments
 (0)