Skip to content

Commit

Permalink
Merge pull request confidential-containers#309 from mkulke/mkulke/fix…
Browse files Browse the repository at this point in the history
…-e2e-rebase-logic

ci: fetch the head of a PR in kbs TEE runs
  • Loading branch information
mkulke authored Feb 1, 2024
2 parents 3003ced + e99b078 commit 4ff3642
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/kbs-e2e-az-snp-vtpm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:
jobs:
authorize:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'test_e2e')
if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'test_e2e')
steps:
- run: "true"

Expand All @@ -36,9 +36,11 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
# fetch main on push, otherwise the head of the PR
ref: ${{ github.event_name == 'push' && 'main' || github.event.pull_request.head.sha }}

- name: Rebase the source
if: github.event_name != 'push'
run: ./kbs/hack/ci-helper.sh rebase-atop-of-the-latest-target-branch

- name: Archive source
Expand Down

0 comments on commit 4ff3642

Please sign in to comment.