Skip to content

Commit

Permalink
fix: curl silent and apps array
Browse files Browse the repository at this point in the history
  • Loading branch information
Pehesi97 committed Mar 10, 2023
1 parent 9152d5c commit cb5cab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ for repository in "${REPOSITORIES[@]}"; do
},
restrictions:{
users:[""],
apps:null,
apps:[""],
teams:[$restrictPushesTeamAllowed]
}
}' \
Expand All @@ -158,7 +158,7 @@ for repository in "${REPOSITORIES[@]}"; do
-H "Accept: application/vnd.github.luke-cage-preview+json" \
-H "Content-Type: application/json" \
-u ${USERNAME}:${GITHUB_TOKEN} \
--verbose \
--silent \
${GITHUB_API_URL}/repos/${repository}/branches/${BRANCH_PROTECTION_NAME}/protection
elif [ "$BRANCH_PROTECTION_ENABLED" == "false" ]; then
curl \
Expand Down

0 comments on commit cb5cab3

Please sign in to comment.