From b122b53fd9b2143f34cffc7f2f7529c96adee06c Mon Sep 17 00:00:00 2001 From: Ido Heyvi Date: Sun, 3 Nov 2024 08:32:01 +0200 Subject: [PATCH 1/2] add pull_request type --- .github/workflows/docs-ci-trigger.yaml | 5 +++++ manifests/test-docs-workflow.yaml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs-ci-trigger.yaml b/.github/workflows/docs-ci-trigger.yaml index 7931aa7a9..5b9d84abb 100644 --- a/.github/workflows/docs-ci-trigger.yaml +++ b/.github/workflows/docs-ci-trigger.yaml @@ -6,13 +6,18 @@ on: #- test-netops-docs-workflow paths: - manifests/** + pull_request: + paths: + - manifests/** jobs: trigger_downstream_workflow: + #if: ${{ github.event_name == 'pull_request' }} uses: heyvister1/network-operator-docs/.github/workflows/docs-ci.yaml@test-netops-docs-workflow with: #git_tag: v24.10.0-beta.4 #${{ github.ref_name }} ref_name: ${{ github.ref_name }} ref_type: ${{ github.ref_type }} + event_type: ${{ github.event_name }} secrets: token: ${{ secrets.GH_TOKEN_NVIDIA_CI_CD }} diff --git a/manifests/test-docs-workflow.yaml b/manifests/test-docs-workflow.yaml index 0eccbc280..2b121048d 100644 --- a/manifests/test-docs-workflow.yaml +++ b/manifests/test-docs-workflow.yaml @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -# trigger ci workflow X 18 \ No newline at end of file +# trigger ci workflow X 19 \ No newline at end of file From b1b26633bd6e0eb2a421819259528798588e18e0 Mon Sep 17 00:00:00 2001 From: Ido Heyvi Date: Sun, 3 Nov 2024 08:33:10 +0200 Subject: [PATCH 2/2] test PR workflow --- manifests/test-docs-workflow.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/test-docs-workflow.yaml b/manifests/test-docs-workflow.yaml index 2b121048d..b9f7d00aa 100644 --- a/manifests/test-docs-workflow.yaml +++ b/manifests/test-docs-workflow.yaml @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -# trigger ci workflow X 19 \ No newline at end of file +# trigger pr work flow X 2