Skip to content

Commit 2074e11

Browse files
committed
fix: refactor docs-ci downstream trigger to operate via workflow_dispatch only
Signed-off-by: Michael Zeevi <[email protected]>
1 parent 9942d08 commit 2074e11

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/docs-ci-trigger.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@ on:
44
push:
55
tags:
66
- "v*"
7+
branches: # TODO: remove this trigger after testing
8+
- "feature/docs-ci-refactor"
79

810
jobs:
9-
trigger_downstream_workflow:
10-
uses: Mellanox/network-operator-docs/.github/workflows/docs-ci.yaml@main
11-
with:
12-
git_tag: ${{ github.ref_name }}
13-
secrets: inherit
11+
call_docs_ci_downstream_workflow:
12+
runs-on: ubuntu-latest
13+
env:
14+
GH_TOKEN: ${{ secrets.GH_TOKEN_NVIDIA_CI_CD2 }} # classic token
15+
GIT_TAG: mz-test # TODO: revert to ${{ github.ref_name }} after testing
16+
steps:
17+
- run: |
18+
gh workflow run docs-ci.yaml \
19+
--repo ${{ github.repository_owner }}/network-operator-docs \
20+
--ref feature/docs-ci-refactor \
21+
--field git_tag=$GIT_TAG
22+
# TODO: change ref to `main` after testing

0 commit comments

Comments
 (0)