Skip to content

Commit 22ab830

Browse files
Michael Vasseurvmcj
authored andcommitted
Don't build release image on PRs
When we push to our own organization this would trigger. As we only care for the push target in our own repo this is much easier. If someone would for they would need to change this but that is up to them.
1 parent c255021 commit 22ab830

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.github/workflows/build-contributor-container-release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ name: 'Build Contributor container (Release)'
44

55
on:
66
push:
7-
pull_request_target:
87
branches:
98
- main
109

1110
jobs:
1211
release-contributor:
13-
if: ${{ github.repository == 'domjudge/domjudge-packaging' && github.ref == 'refs/heads/main' }}
12+
if: ${{ github.repository == 'domjudge/domjudge-packaging' }}
1413
runs-on: ubuntu-latest
1514
steps:
1615
- name: Checkout

.github/workflows/build-domjudge-container-release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: 'Build domjudge container (Release)'
22

33
on:
44
push:
5-
pull_request_target:
65
branches:
76
- main
87

@@ -12,7 +11,7 @@ env:
1211

1312
jobs:
1413
release-domjudge:
15-
if: ${{ github.repository == 'domjudge/domjudge-packaging' && github.ref == 'refs/heads/main' }}
14+
if: ${{ github.repository == 'domjudge/domjudge-packaging' }}
1615
runs-on: ubuntu-latest
1716
steps:
1817
- name: Checkout

.github/workflows/build-gitlab-container-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
build-gitlab:
10-
if: ${{ github.repository == 'domjudge/domjudge-packaging' && github.ref == 'refs/heads/main' }}
10+
if: ${{ github.repository == 'domjudge/domjudge-packaging' }}
1111
name: Build GitLab image
1212
runs-on: ubuntu-latest
1313
permissions:

0 commit comments

Comments
 (0)