Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/previews-ods-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,19 @@ jobs:
pull-requests: write

steps:
- name: Checkout
- name: Checkout branch
if: github.event.action != 'closed'
uses: actions/checkout@v5
# Fetch the full history for the branch to be able to get the short SHA
with:
ref: ${{ github.head_ref }}
fetch-depth: 0

# If the PR is closed, the branch may be deleted already, so we can't checkout the branch
- name: Checkout
if: github.event.action == 'closed'
uses: actions/checkout@v5

- name: Set up kubectl
uses: azure/setup-kubectl@v4
with:
Expand Down