Skip to content

Commit cec3445

Browse files
authored
Merge pull request #897 from elezar/fix-copy-prs
Fix detection of PRs
2 parents 9a07de0 + f830653 commit cec3445

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/image.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- centos7-x86_64
4242
- centos8-ppc64le
4343
ispr:
44-
- ${{github.event_name == 'pull_request'}}
44+
- ${{ github.ref_name != 'main' && !startsWith( github.ref_name, 'release-' ) }}
4545
exclude:
4646
- ispr: true
4747
target: ubuntu18.04-arm64
@@ -82,7 +82,7 @@ jobs:
8282
- ubi8
8383
- packaging
8484
ispr:
85-
- ${{github.event_name == 'pull_request'}}
85+
- ${{ github.ref_name != 'main' && !startsWith( github.ref_name, 'release-' ) }}
8686
exclude:
8787
- ispr: true
8888
dist: ubi8
@@ -95,9 +95,6 @@ jobs:
9595
run: |
9696
echo "COMMIT_SHORT_SHA=${GITHUB_SHA:0:8}" >> $GITHUB_ENV
9797
echo "LOWERCASE_REPO_OWNER=$(echo "${GITHUB_REPOSITORY_OWNER}" | awk '{print tolower($0)}')" >> $GITHUB_ENV
98-
REPO_FULL_NAME="${{ github.event.pull_request.head.repo.full_name }}"
99-
echo "${REPO_FULL_NAME}"
100-
echo "LABEL_IMAGE_SOURCE=https://github.com/${REPO_FULL_NAME}" >> $GITHUB_ENV
10198
10299
PUSH_ON_BUILD="false"
103100
BUILD_MULTI_ARCH_IMAGES="false"

0 commit comments

Comments
 (0)