From c59a78532a97ed3df25c945e002fe0e954c91197 Mon Sep 17 00:00:00 2001 From: Chris Werner Rau Date: Thu, 24 Aug 2023 09:46:53 +0200 Subject: [PATCH] fix(ci): use current PR's branch (#526) --- .github/workflows/validate-and-label-pullrequest.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validate-and-label-pullrequest.yaml b/.github/workflows/validate-and-label-pullrequest.yaml index 35b298755..e69f8175d 100644 --- a/.github/workflows/validate-and-label-pullrequest.yaml +++ b/.github/workflows/validate-and-label-pullrequest.yaml @@ -30,7 +30,8 @@ jobs: steps: - uses: actions/checkout@v3 with: - ref: ${{ github.event.repository.default_branch }} + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} - uses: helm/chart-testing-action@v2.4.0 - run: .github/scripts/validate-and-label-pullrequest.sh