From 8abadd82699b4b0c2781966d13206298017f3308 Mon Sep 17 00:00:00 2001 From: Alan Rynne Date: Mon, 9 Jan 2023 20:24:10 +0100 Subject: [PATCH] fix: Use input issue_id in update workflow --- .github/workflows/project-update-issue-status.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/project-update-issue-status.yml b/.github/workflows/project-update-issue-status.yml index a9af4df..67d5972 100644 --- a/.github/workflows/project-update-issue-status.yml +++ b/.github/workflows/project-update-issue-status.yml @@ -11,9 +11,13 @@ on: type: number default: 11 description: The project number where the issue should be updated + issue-id: + type: string + required: true secrets: GHPROJECT_TOKEN: required: true + env: GITHUB_TOKEN: ${{ secrets.GHPROJECT_TOKEN }} @@ -57,7 +61,7 @@ jobs: id } } - }' -f project=$PROJECT_ID -f id=$ISSUE_ID --jq '.data.addProjectNextItem.projectNextItem.id')" + }' -f project=$PROJECT_ID -f id=${{ inputs.issue-id }} --jq '.data.addProjectNextItem.projectNextItem.id')" echo 'ITEM_ID='$item_id >> $GITHUB_ENV