Skip to content

Commit

Permalink
ci: checkout repo before deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
msanft committed Dec 19, 2023
1 parent d8b4b94 commit 352ade0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/e2e-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,20 @@ jobs:
if: always()
needs: [create-cluster, e2e-upgrade]
steps:
- name: Checkout
if: inputs.gitRef == 'head'
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
fetch-depth: 0
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}

- name: Checkout ref
if: inputs.gitRef != 'head'
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
fetch-depth: 0
ref: ${{ inputs.gitRef }}

- name: Always fetch logs
if: always()
env:
Expand Down

0 comments on commit 352ade0

Please sign in to comment.