Skip to content

Commit

Permalink
fix: typo in pre-fetching required checks code (#9)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Pehesi97 authored Jun 20, 2023
1 parent fa3f37c commit 3f355d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ for repository in "${REPOSITORIES[@]}"; do
-u ${USERNAME}:${GITHUB_TOKEN} \
${GITHUB_API_URL}/repos/${repository}/branches/${BRANCH_PROTECTION_NAME}/protection/required_status_checks)

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

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

0 comments on commit 3f355d8

Please sign in to comment.