Skip to content

Commit 3f355d8

Browse files
authored
fix: typo in pre-fetching required checks code (#9)
* ci: debug the required status checks object * ci: remove quotes from existing checks * ci: fix double quotes error in status checks * ci: debugging status checks * ci: fix REQUIRED_STATUS_CHECKS variable * ci: remove debug lines
1 parent fa3f37c commit 3f355d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ for repository in "${REPOSITORIES[@]}"; do
140140
-u ${USERNAME}:${GITHUB_TOKEN} \
141141
${GITHUB_API_URL}/repos/${repository}/branches/${BRANCH_PROTECTION_NAME}/protection/required_status_checks)
142142

143-
EXISTING_CHECKS=$(echo "$required_status_checks" | jq -c '.checks')
143+
EXISTING_CHECKS=$(echo "$REQUIRED_STATUS_CHECKS" | jq -rc '.checks')
144144

145145
# the argjson instead of just arg lets us pass the values not as strings
146146
jq -n \

0 commit comments

Comments
 (0)