diff --git a/.github/workflows/registry-updates-test.yaml b/.github/workflows/registry-updates-test.yaml index 3d8a4854..b078a29c 100644 --- a/.github/workflows/registry-updates-test.yaml +++ b/.github/workflows/registry-updates-test.yaml @@ -16,6 +16,11 @@ jobs: environment: staging steps: + - name: Checkout repository + uses: actions/checkout@v2 + with: + fetch_depth: 1 + - name: check for PR approval 1 run: | echo "PR IS approved: ${{ github.event.review_state }}" @@ -38,12 +43,6 @@ jobs: const approved = reviews.some(review => review.state === 'APPROVED'); return approved; - - name: Checkout repository - uses: actions/checkout@v2 - with: - fetch_depth: 1 - - - name: Cancel if not approved if: steps.check-approval.outputs.approved == 'false' run: |