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 30da336 commit e7395c2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/lock_branch.yaml
Expand Up @@ -60,9 +60,18 @@ jobs:

- name: Lock Branch
run: |
curl -sSL \
if ! \
curl -sSLf \
-X PUT \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GITHUB_TOKEN"\
-d "$PAYLOAD" \
"https://api.github.com/repos/$REPO/branches/$BRANCH/protection"
"https://api.github.com/repos/$REPO/branches/$BRANCH/protection"; then
curl -L \
-X PUT \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GITHUB_TOKEN"\
-d "$PAYLOAD" \
"https://api.github.com/repos/$REPO/branches/$BRANCH/protection"; then
exit 1
fi

0 comments on commit e7395c2

Please sign in to comment.