From 662662ab2d1fc30589f50c0821813252b7586933 Mon Sep 17 00:00:00 2001 From: Andrew Tatomyr Date: Tue, 21 Jan 2025 22:35:04 +0200 Subject: [PATCH] create experimental branch first --- .github/workflows/experimental-pr.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/experimental-pr.yaml b/.github/workflows/experimental-pr.yaml index a0984aa09..7231b6b9e 100644 --- a/.github/workflows/experimental-pr.yaml +++ b/.github/workflows/experimental-pr.yaml @@ -13,14 +13,19 @@ jobs: pull-requests: write steps: - - name: Checkout the PR branch + - name: Checkout main branch uses: actions/checkout@v4 with: - ref: ${{ github.event.pull_request.head.ref }} + ref: main fetch-depth: 0 - - name: Create/Update the experimental branch from main - run: git push -f origin main:refs/heads/experimental + - name: Create the experimental branch + run: git push origin main:refs/heads/experimental + + - name: Checkout the PR branch + uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Create PR to experimental env: