Skip to content

Commit

Permalink
Acquire Lock - switched from main to aquire-lock branch
Browse files Browse the repository at this point in the history
  • Loading branch information
vradulescu-bd committed Nov 20, 2024
1 parent 8fba7bf commit f6056bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/accept-baseline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

permissions:
contents: write
statuses: write

jobs:
check-conditions:
Expand Down Expand Up @@ -40,7 +41,7 @@ jobs:
- name: Verify Approvals
run: |
APPROVALS=$(gh pr view ${{ github.event.pull_request.number }} --json reviews --jq '[.reviews[] | select(.state=="APPROVED")] | length')
if [[ "$APPROVALS" -lt 2 ]]; then
if [[ "$APPROVALS" -lt 1 ]]; then
echo "Not enough approvals. Exiting."
exit 1
fi
Expand Down

0 comments on commit f6056bf

Please sign in to comment.