File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -33,15 +33,14 @@ jobs:
33
33
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
34
DEV_PROJECT_ID : ${{ secrets.DEV_PROJECT_ID }}
35
35
run : |
36
- project_number=$(echo $DEV_PROJECT_ID | jq -r '.split("/")[-1]') # Optional if $DEV_PROJECT_ID is full URL, otherwise remove this line.
37
36
columns=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \
38
37
-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")
40
39
41
40
echo "Columns response: $columns"
42
41
43
42
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')
45
44
if [ -n "$column_id" ]; then
46
45
echo "COLUMN_ID=$column_id" >> $GITHUB_ENV
47
46
else
You can’t perform that action at this time.
0 commit comments