Skip to content

Commit

Permalink
Project automation update: skip if not in project (#16035)
Browse files Browse the repository at this point in the history
This PR adds another condition to when we should run the automation work. PRs aren't always in the cuDF Python project so when this is the case we should skip the job rather than attempting to run it and have it throw an error.

Authors:
  - Ben Jarmak (https://github.com/jarmak-nv)

Approvers:
  - James Lamb (https://github.com/jameslamb)
  - Vyas Ramasubramani (https://github.com/vyasr)

URL: #16035
  • Loading branch information
jarmak-nv authored Jun 14, 2024
1 parent 9225633 commit 9dc5e8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr_issue_status_automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
update-status:
# This job sets the PR and its linked issues to "In Progress" status
uses: rapidsai/shared-workflows/.github/workflows/[email protected]
if: github.event.pull_request.state == 'open'
if: ${{ github.event.pull_request.state == 'open' && needs.get-project-id.outputs.ITEM_PROJECT_ID != '' }}
needs: get-project-id
with:
PROJECT_ID: "PVT_kwDOAp2shc4AiNzl"
Expand All @@ -51,7 +51,7 @@ jobs:
update-sprint:
# This job sets the PR and its linked issues to the current "Weekly Sprint"
uses: rapidsai/shared-workflows/.github/workflows/[email protected]
if: github.event.pull_request.state == 'open'
if: ${{ github.event.pull_request.state == 'open' && needs.get-project-id.outputs.ITEM_PROJECT_ID != '' }}
needs: get-project-id
with:
PROJECT_ID: "PVT_kwDOAp2shc4AiNzl"
Expand Down

0 comments on commit 9dc5e8c

Please sign in to comment.