Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project Automation - Fix issue/pr sync workflow #504

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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