Skip to content

Commit

Permalink
updated lock_branch.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Jul 30, 2023
1 parent fe7eb50 commit a7d4bb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lock_branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ jobs:
curl -sSL --fail \
-X PUT \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GITHUB_TOKEN"\
-H "Authorization: Bearer $GITHUB_TOKEN" \
-d "$PAYLOAD" \
"https://api.github.com/repos/$REPO/branches/$BRANCH/protection"; then
# re-run it without --fail hiding the content output containing the error message details, so we can debug it at a glance
curl -sSL \
-X PUT \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GITHUB_TOKEN"\
-H "Authorization: Bearer $GITHUB_TOKEN" \
-d "$PAYLOAD" \
"https://api.github.com/repos/$REPO/branches/$BRANCH/protection"
Expand Down

0 comments on commit a7d4bb2

Please sign in to comment.