diff --git a/.github/workflows/ci_pipe.yml b/.github/workflows/ci_pipe.yml index 235b2c8da6..6d83f24a91 100644 --- a/.github/workflows/ci_pipe.yml +++ b/.github/workflows/ci_pipe.yml @@ -27,6 +27,16 @@ on: test_container: required: true type: string + pr_info: + required: true + type: string + pr_outcome: + required: true + type: boolean + has_skip_ci_label: + required: true + type: boolean + secrets: NGC_API_KEY: required: true @@ -40,6 +50,8 @@ env: MORPHEUS_ROOT: "${{ github.workspace }}/morpheus" WORKSPACE: "${{ github.workspace }}/morpheus" WORKSPACE_TMP: "${{ github.workspace }}/tmp" + PR_OUTCOME: "${{ github.event.inputs.pr_outcome }}" + HAS_SKIP_CI_LABEL: "${{ github.event.inputs.has_skip_ci_label }}" permissions: actions: none diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index d5e73334e5..27bfe0baae 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -53,7 +53,7 @@ jobs: uses: rapidsai/shared-action-workflows/get-pr-info@branch-23.08 if: ${{ startsWith(github.ref_name, 'pull-request/') }} outputs: - pr_output: ${{ steps.get-pr-info.outcome == 'success' }} + pr_outcome: ${{ steps.get-pr-info.outcome == 'success' }} pr_info: ${{ steps.get-pr-info.outputs.pr-info }} has_skip_ci_label: ${{ steps.get-pr-info.outcome == 'success' && contains(fromJSON(steps.get-pr-info.outputs.pr-info).labels.*.name, 'skip-ci') || false }} @@ -62,6 +62,10 @@ jobs: needs: [prepare] uses: ./.github/workflows/ci_pipe.yml with: + pr_info: ${{ needs.prepare.outputs.pr_info }} + pr_outcome: ${{ needs.prepare.outputs.pr_outcome }} + has_skip_ci_label: ${{ needs.prepare.outputs.has_skip_ci_label }} + run_check: ${{ startsWith(github.ref_name, 'pull-request/') }} container: nvcr.io/ea-nvidia-morpheus/morpheus:morpheus-ci-build-230913 test_container: nvcr.io/ea-nvidia-morpheus/morpheus:morpheus-ci-test-230913 diff --git a/ci/scripts/github/checks.sh b/ci/scripts/github/checks.sh index 7426754590..48d0b4dcfe 100755 --- a/ci/scripts/github/checks.sh +++ b/ci/scripts/github/checks.sh @@ -16,6 +16,10 @@ set -e +rapids-logger "PR_OUTCOME=${PR_OUTCOME}" +rapids-logger "HAS_SKIP_CI_LABEL=${HAS_SKIP_CI_LABEL}" +exit 1 + source ${WORKSPACE}/ci/scripts/github/common.sh update_conda_env