Skip to content

Commit 2bb7e4a

Browse files
authored
Update 99-add-issue-to-project.yml
1 parent 4ded4e1 commit 2bb7e4a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,14 @@ jobs:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3434
DEV_PROJECT_ID: ${{ secrets.DEV_PROJECT_ID }}
3535
run: |
36-
project_number=$(echo $DEV_PROJECT_ID | jq -r '.split("/")[-1]') # Optional if $DEV_PROJECT_ID is full URL, otherwise remove this line.
3736
columns=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \
3837
-H "Accept: application/vnd.github.inertia-preview+json" \
39-
"https://api.github.com/projects/$project_number/columns")
38+
"https://api.github.com/projects/$DEV_PROJECT_ID/columns")
4039
4140
echo "Columns response: $columns"
4241
4342
if echo "$columns" | jq -e . >/dev/null 2>&1; then
44-
column_id=$(echo $columns | jq -r '.[] | select(.name=="No Status") | .id')
43+
column_id=$(echo $columns | jq -r '.[] | select(.name == "No Status") | .id')
4544
if [ -n "$column_id" ]; then
4645
echo "COLUMN_ID=$column_id" >> $GITHUB_ENV
4746
else

0 commit comments

Comments
 (0)