Skip to content

Commit 294e359

Browse files
authored
add gitlab dashboard trigger workflow (#1153)
Add workflow to trigger dashboard build. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Added a GitHub Actions workflow “Build Dashboard” to manually trigger the dashboard build pipeline. * Runs on ubuntu-latest and triggers the main branch pipeline with secure credentials. * Provides clear success/failure logging and halts on errors to ensure reliable builds. * Improves operational control by enabling on-demand dashboard builds without code changes. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Jared Wilber <jwilber@nvidia.com>
1 parent 1ac89fc commit 294e359

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build Dashboard
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
trigger:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Trigger GitLab dashboard pipeline
11+
env:
12+
GITLAB_TRIGGER_TOKEN: ${{ secrets.GITLAB_TRIGGER_TOKEN }}
13+
GITLAB_PROJECT_ID_DASHBOARDS: "130554"
14+
run: |
15+
echo "Triggering GitLab dashboard pipeline (main)..."
16+
if curl -fsS -X POST \
17+
-F "token=${GITLAB_TRIGGER_TOKEN}" \
18+
-F "ref=main" \
19+
"https://gitlab-master.nvidia.com/api/v4/projects/${GITLAB_PROJECT_ID_DASHBOARDS}/trigger/pipeline" >/dev/null; then
20+
echo "✓ Triggered GitLab dashboard pipeline."
21+
else
22+
echo "✗ Failed to trigger GitLab dashboard pipeline." >&2
23+
exit 1
24+
fi

0 commit comments

Comments
 (0)