diff --git a/.github/workflows/preflight-stale-approvals.yml b/.github/workflows/preflight-stale-approvals.yml index 644f348..067f0b4 100644 --- a/.github/workflows/preflight-stale-approvals.yml +++ b/.github/workflows/preflight-stale-approvals.yml @@ -34,7 +34,6 @@ jobs: steps: - name: Resolve reusable workflow ref id: workflow-ref - if: github.event_name != 'pull_request' uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 with: script: | @@ -44,17 +43,7 @@ jobs: const ref = job_workflow_ref.split('@')[1]; core.setOutput('ref', ref); - - name: Checkout action from pull request - if: github.event_name == 'pull_request' - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - with: - repository: ${{ github.event.pull_request.head.repo.full_name }} - ref: ${{ github.event.pull_request.head.sha }} - sparse-checkout: | - .github/actions/dismiss-stale-approvals - - - name: Checkout action from reusable workflow ref - if: github.event_name != 'pull_request' + - name: Checkout action uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: repository: hashintel/.github