Skip to content

Commit

Permalink
rearrange the checkout repository step
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkarthik committed Sep 2, 2024
1 parent e246d71 commit bd380d3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/registry-updates-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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: |
Expand Down

0 comments on commit bd380d3

Please sign in to comment.