Skip to content

Commit

Permalink
Merge pull request #504 from jarmak-nv/project-automation-fix-linked-…
Browse files Browse the repository at this point in the history
…issue-mutations

Project Automation - Fix issue/pr sync workflow
  • Loading branch information
jarmak-nv authored Oct 24, 2023
2 parents 814fad6 + db52451 commit a833153
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/project_automation_sync_pr_issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ jobs:
app_id: ${{ secrets.CCCL_AUTH_APP_ID }}
private_key: ${{ secrets.CCCL_AUTH_APP_PEM }}

- name: Wait 1 Second
id: sleep
run: sleep 1

- name: Get PR Project ID
id: get_pr_id
env:
Expand Down Expand Up @@ -99,13 +95,13 @@ jobs:
id
fieldValueByName(name: "Status") {
... on ProjectV2ItemFieldSingleSelectValue {
id
optionId
}
}
}
}
}' > status_field_data.json
status_option_id=$(jq -r '.data.node.fieldValueByName.id' status_field_data.json)
status_option_id=$(jq -r '.data.node.fieldValueByName.optionId' status_field_data.json)
echo "STATUS_OPTION_ID=$status_option_id" >> $GITHUB_ENV
# Query the PR's start sprint from the project
Expand All @@ -116,13 +112,13 @@ jobs:
id
fieldValueByName(name: "Start Sprint") {
... on ProjectV2ItemFieldIterationValue {
id
optionId
}
}
}
}
}' > start_sprint_data.json
start_sprint_option_id=$(jq -r '.data.node.fieldValueByName.id' start_sprint_data.json)
start_sprint_option_id=$(jq -r '.data.node.fieldValueByName.optionId' start_sprint_data.json)
echo "START_SPRINT_OPTION_ID=$start_sprint_option_id" >> $GITHUB_ENV
# Query the PR's working sprint from the project
Expand All @@ -133,13 +129,13 @@ jobs:
id
fieldValueByName(name: "Working Sprint") {
... on ProjectV2ItemFieldIterationValue {
id
optionId
}
}
}
}
}' > working_sprint_data.json
working_sprint_option_id=$(jq -r '.data.node.fieldValueByName.id' working_sprint_data.json)
working_sprint_option_id=$(jq -r '.data.node.fieldValueByName.optionId' working_sprint_data.json)
echo "WORKING_SPRINT_OPTION_ID=$working_sprint_option_id" >> $GITHUB_ENV
continue-on-error: true
Expand Down

0 comments on commit a833153

Please sign in to comment.