Skip to content

Commit dabaaf4

Browse files
authored
chore: another try
1 parent d074e9e commit dabaaf4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/99-add-issue-to-project.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ jobs:
1313
- name: Add issue to project
1414
env:
1515
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16-
PROJECT_ID: ${{ secrets.DEV_PROJECT_ID }} # Set this in your repository secrets
16+
DEV_PROJECT_ID: ${{ secrets.DEV_PROJECT_ID }} # Set this in your repository secrets
1717
run: |
18-
issue_number=${{ github.event.issue.number }}
19-
issue_node_id=$(gh api graphql -F owner='${{ github.repository_owner }}' -F name='${{ github.event.repository.name }}' -F issueNumber="$issue_number" -f query='
18+
issue_node_id=$(gh api graphql -F owner='${{ github.repository_owner }}' -F name='${{ github.event.repository.name }}' -F issueNumber=${{ github.event.issue.number }} -f query='
2019
query ($owner: String!, $name: String!, $issueNumber: Int!) {
2120
repository(owner: $owner, name: $name) {
2221
issue(number: $issueNumber) {
@@ -25,7 +24,7 @@ jobs:
2524
}
2625
}' -q .data.repository.issue.id)
2726
28-
gh api graphql -F projectId=$PROJECT_ID -F contentId=$issue_node_id -f query='
27+
gh api graphql -F projectId=$DEV_PROJECT_ID -F contentId=$issue_node_id -f query='
2928
mutation ($projectId: ID!, $contentId: ID!) {
3029
addProjectNextItem(input: {projectId: $projectId, contentId: $contentId}) {
3130
projectNextItem {

0 commit comments

Comments
 (0)