From 05213a31f657f5f087134cde702d15ad041ade5d Mon Sep 17 00:00:00 2001 From: Saul Paredes Date: Thu, 14 Nov 2024 13:05:30 -0800 Subject: [PATCH] ci: rebase before running samples check This removes the need for PR author to rebase feature branch for updated samples in target branch, if any Signed-off-by: Saul Paredes --- .github/workflows/check-samples.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/check-samples.yaml b/.github/workflows/check-samples.yaml index 92945a2fa2da..4c7d783b7c14 100644 --- a/.github/workflows/check-samples.yaml +++ b/.github/workflows/check-samples.yaml @@ -14,6 +14,12 @@ jobs: - name: Check out code uses: actions/checkout@v4 + - name: Rebase atop of the latest target branch + env: + TARGET_BRANCH: ${{ github.event.pull_request.base.ref }} + run: | + ./tests/git-helper.sh "rebase-atop-of-the-latest-target-branch" + - name: Install yq env: INSTALL_IN_GOPATH: false