-
Notifications
You must be signed in to change notification settings - Fork 25
35 lines (29 loc) · 1.04 KB
/
Copy pathdispatch.yaml
File metadata and controls
35 lines (29 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
name: Dispatch
on:
push:
branches: [main, "release/*"]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.sha }}
cancel-in-progress: false
jobs:
notify-ci-consumer:
name: Notify CI consumer
runs-on: ubuntu-latest
steps:
- name: Check out workflow revision
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Send completion event
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
DISPATCH_REPO: ${{ secrets.CI_DISPATCH_REPO }}
with:
github-token: ${{ secrets.CI_DISPATCH_TOKEN }}
script: |
const { dispatchCiConsumer } = require("./.github/scripts/dispatch.cjs");
await dispatchCiConsumer({ core, github, context, env: process.env });