From 14c9a131d3cb13a77de8748a4931808126f77ff1 Mon Sep 17 00:00:00 2001 From: Armel Soro Date: Mon, 6 Jan 2025 23:11:42 +0100 Subject: [PATCH] ci: Fix issue preventing the bundle diff checker job from committing changes detected Checking out the merge commit causes us to no longer be on the PR branch, as we can see in these logs [1] [1] https://github.com/redhat-developer/rhdh-operator/actions/runs/12632058905/job/35222737737 --- .github/workflows/pr-bundle-diff-checks.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-bundle-diff-checks.yaml b/.github/workflows/pr-bundle-diff-checks.yaml index 54e0a821..5c12dd85 100644 --- a/.github/workflows/pr-bundle-diff-checks.yaml +++ b/.github/workflows/pr-bundle-diff-checks.yaml @@ -12,7 +12,7 @@ on: concurrency: group: ${{ github.workflow }}-${{ github.event.number }} - cancel-in-progress: true + cancel-in-progress: false jobs: authorize: @@ -39,7 +39,8 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 with: fetch-depth: 0 - ref: "${{ github.event.pull_request.merge_commit_sha }}" + repository: ${{github.event.pull_request.head.repo.full_name}} + ref: ${{ github.event.pull_request.head.ref }} - name: Setup Go uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5