diff --git a/.github/workflows/ci-label.yml b/.github/workflows/ci-label.yml index 1a6bcb32161..99bf9480ac3 100644 --- a/.github/workflows/ci-label.yml +++ b/.github/workflows/ci-label.yml @@ -19,7 +19,12 @@ jobs: if: > github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' - steps: + steps: + - name: Print Full Event Payload + id: print-event + run: | + echo "Full event payload:" + cat $GITHUB_EVENT_PATH - name: Set PR_NUMBER id: set-vars @@ -40,15 +45,16 @@ jobs: - name: Check Status of All Workflows run: | pr_number=${{ env.PR_NUMBER }} - echo "Checking statuses for PR #$pr_number" - + echo "Checking statuses for PR #$pr_number" + + echo "Repository: $GITHUB_REPOSITORY" echo "Workflow: KFP Manifests" - # Print the latest workflow runs - gh run list --workflow "KFP Manifests" --json "id,head_sha,status,conclusion" | jq -r --arg pr_number "$pr_number" '.[] | select(.head_sha == $pr_number) | .status' + # Print the latest workflow runs for the PR + gh run list --workflow "KFP Manifests" --json number,headSha,status --repo $GITHUB_REPOSITORY | jq -r --arg pr_number "$pr_number" '.[] | select(.headSha == $pr_number) | .status' # Check the status of the workflow for the given PR - statuses=$(gh run list --workflow "KFP Manifests" --json status | jq -r --arg pr_number "$pr_number" '.[] | select(.head_sha == $pr_number) | .status') + statuses=$(gh run list --workflow "KFP Manifests" --json status,headSha --repo $GITHUB_REPOSITORY | jq -r --arg pr_number "$pr_number" '.[] | select(.headSha == $pr_number) | .status') # Print statuses echo "Statuses: $statuses" @@ -59,7 +65,7 @@ jobs: exit 1 else echo "All workflows succeeded. Adding 'ci-passed' label." - gh pr edit $pr_number --add-label "ci-passed" + gh pr edit $pr_number --add-label "ci-passed" --repo $GITHUB_REPOSITORY fi env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/kubeflow-pipelines-manifests.yml b/.github/workflows/kubeflow-pipelines-manifests.yml index 5768c73f67c..d494e2e0d0a 100644 --- a/.github/workflows/kubeflow-pipelines-manifests.yml +++ b/.github/workflows/kubeflow-pipelines-manifests.yml @@ -1,4 +1,3 @@ -#test name: KFP Manifests on: