File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -27,21 +27,22 @@ jobs:
27
27
}' -q .data.repository.issue.id)
28
28
echo "ISSUE_ID=$issue_id" >> $GITHUB_ENV
29
29
30
- - name : Verify access to project
30
+ - name : Verify DEV_PROJECT_ID
31
31
env :
32
32
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
33
DEV_PROJECT_ID : ${{ secrets.DEV_PROJECT_ID }}
34
+ ORG : ${{ github.repository_owner }}
34
35
run : |
35
36
result=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \
36
37
-H "Accept: application/vnd.github.v3+json" \
37
- "https://api.github.com/projects/$DEV_PROJECT_ID")
38
+ "https://api.github.com/orgs/$ORG/ projects/$DEV_PROJECT_ID")
38
39
39
40
echo "Project response: $result"
40
41
41
42
if echo "$result" | jq -e . >/dev/null 2>&1; then
42
43
project_state=$(echo $result | jq -r '.state')
43
- if [ "$project_state" != "active " ]; then
44
- echo "Project is not active or not found"
44
+ if [ "$project_state" != "open " ]; then
45
+ echo "Project is not open or not found"
45
46
exit 1
46
47
fi
47
48
else
54
55
env :
55
56
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
56
57
DEV_PROJECT_ID : ${{ secrets.DEV_PROJECT_ID }}
58
+ ORG : ${{ github.repository_owner }}
57
59
run : |
58
60
columns=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \
59
61
-H "Accept: application/vnd.github.inertia-preview+json" \
You can’t perform that action at this time.
0 commit comments