Skip to content

Commit

Permalink
Update development tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachNagengast committed Mar 18, 2024
1 parent 59cb851 commit e45dc0a
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/development-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,22 @@ jobs:
check-approvals:
runs-on: ubuntu-latest
outputs:
reviews: ${{ steps.reviews.outputs.state }}
reviews: ${{ steps.reviews.outputs.state }}
permissions:
pull-requests: read
steps:
- id: reviews
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check Approvals
id: reviews
env:
GH_TOKEN: ${{ github.token }}
pr: ${{ github.event.number }}
pr: ${{ github.event.pull_request.number }}
run: |
state=$(gh pr view "$pr" \
--repo "$GITHUB_REPOSITORY" \
--json reviewDecision \
--jq '.reviewDecision')
echo "Checking PR approval for: $pr"
state=$(gh pr view $pr --json reviewDecision --jq '.reviewDecision')
echo "Review decision state: $state"
echo "state=$state" >> "$GITHUB_OUTPUT"
pre-merge-tests:
Expand Down

0 comments on commit e45dc0a

Please sign in to comment.