From 6e9ff446c84863418eb96f904b8b893699912bd6 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Wed, 5 Feb 2025 16:10:00 +0100 Subject: [PATCH] [no-relnote] Use github.ref_name to detect PRs Signed-off-by: Evan Lezar --- .github/workflows/image.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/image.yaml b/.github/workflows/image.yaml index e63ea840..f548769d 100644 --- a/.github/workflows/image.yaml +++ b/.github/workflows/image.yaml @@ -41,7 +41,7 @@ jobs: - centos7-x86_64 - centos8-ppc64le ispr: - - ${{github.event_name == 'pull_request'}} + - ${{ github.ref_name != 'main' && !startsWith( github.ref_name, 'release-' ) }} exclude: - ispr: true target: ubuntu18.04-arm64 @@ -82,7 +82,7 @@ jobs: - ubi8 - packaging ispr: - - ${{github.event_name == 'pull_request'}} + - ${{ github.ref_name != 'main' && !startsWith( github.ref_name, 'release-' ) }} exclude: - ispr: true dist: ubi8