From c3eb522122b29896ec9badfcfb4c81d63c452489 Mon Sep 17 00:00:00 2001 From: "Brian J. Murrell" Date: Tue, 16 Apr 2024 16:08:41 -0400 Subject: [PATCH] Checkout before trying ot use local action Skip-PR-comments: true Run-GHA: true Required-githooks: true Signed-off-by: Brian J. Murrell --- .github/workflows/rpm-build-and-test.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/rpm-build-and-test.yml b/.github/workflows/rpm-build-and-test.yml index 5c74286..efad1d0 100644 --- a/.github/workflows/rpm-build-and-test.yml +++ b/.github/workflows/rpm-build-and-test.yml @@ -66,6 +66,10 @@ jobs: pr-repos: ${{ steps.pr-repos.outputs.value }} run-gha: ${{ steps.run-gha.outputs.value }} steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Set rpm-test-version variable id: rpm-test-version uses: ./.github/actions/variable-from-pragma @@ -122,6 +126,10 @@ jobs: outputs: matrix: ${{ steps.matrix.outputs.text }} steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Import commit pragmas uses: ./.github/actions/import-commit-pragmas - name: Calculate RPM Build Matrix @@ -178,6 +186,10 @@ jobs: DISTRO_VERSION: CP_LEAP15_VERSION: steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Import commit pragmas uses: ./.github/actions/import-commit-pragmas - name: Set variables