Skip to content

Commit 6f723eb

Browse files
authored
Fix push in workflows (#60)
Image push was broken in #56 , let's try to fix it.
1 parent 54f59d1 commit 6f723eb

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

.github/workflows/debian.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ defaults:
1717
shell: bash
1818

1919
env:
20-
PUSH: ${{ github.event == 'push' && github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
20+
PUSH: ${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
2121
CONTAINER_REGISTRY: ghcr.io
2222
BUILDKIT_PROGRESS: plain
2323
CONAN_VERSION: 2.19.1
@@ -161,7 +161,7 @@ jobs:
161161
retention-days: 1
162162

163163
merge:
164-
if: ${{ github.event == 'push' && github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
164+
if: ${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
165165
strategy:
166166
matrix:
167167
os:

.github/workflows/gcc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ defaults:
1616
shell: bash
1717

1818
env:
19-
PUSH: ${{ github.event == 'push' && github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
19+
PUSH: ${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
2020
CONTAINER_REGISTRY: ghcr.io
2121
BUILDKIT_PROGRESS: plain
2222

@@ -109,7 +109,7 @@ jobs:
109109
retention-days: 1
110110

111111
merge:
112-
if: ${{ github.event == 'push' && github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
112+
if: ${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
113113
strategy:
114114
matrix:
115115
os:

.github/workflows/rhel.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ defaults:
1717
shell: bash
1818

1919
env:
20-
PUSH: ${{ github.event == 'push' && github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
20+
PUSH: ${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
2121
CONTAINER_REGISTRY: ghcr.io
2222
REDHAT_REGISTRY: registry.redhat.io
2323
BUILDKIT_PROGRESS: plain
@@ -138,7 +138,7 @@ jobs:
138138
retention-days: 1
139139

140140
merge:
141-
if: ${{ github.event == 'push' && github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
141+
if: ${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
142142
strategy:
143143
matrix:
144144
os:

.github/workflows/tools-rippled.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ defaults:
1616
shell: bash
1717

1818
env:
19-
PUSH: ${{ github.event == 'push' && github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
19+
PUSH: ${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
2020
CONTAINER_REGISTRY: ghcr.io
2121
BUILDKIT_PROGRESS: plain
2222
CMAKE_VERSION: 3.31.6
@@ -115,7 +115,7 @@ jobs:
115115
retention-days: 1
116116

117117
merge:
118-
if: ${{ github.event == 'push' && github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
118+
if: ${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
119119
strategy:
120120
matrix:
121121
tool:

.github/workflows/ubuntu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ defaults:
1717
shell: bash
1818

1919
env:
20-
PUSH: ${{ github.event == 'push' && github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
20+
PUSH: ${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
2121
CONTAINER_REGISTRY: ghcr.io
2222
BUILDKIT_PROGRESS: plain
2323
CONAN_VERSION: 2.19.1
@@ -140,7 +140,7 @@ jobs:
140140
retention-days: 1
141141

142142
merge:
143-
if: ${{ github.event == 'push' && github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
143+
if: ${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
144144
strategy:
145145
matrix:
146146
os:

0 commit comments

Comments
 (0)