Skip to content

Commit 9e25dd5

Browse files
committed
fix env not being avail
1 parent 471f48a commit 9e25dd5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/ci-build.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ name: ci-build
2929
env:
3030
REGISTRY: ghcr.io
3131
DOTNET_VERSION: 9.0.x
32-
33-
PUSH: ${{ inputs.push || (github.ref_protected && github.event_name != 'pull_request') }}
3432

3533
jobs:
3634

@@ -91,15 +89,15 @@ jobs:
9189
uses: ./.github/actions/build-app
9290
with:
9391
dockerfile: ${{ matrix.dockerfile }}
94-
push: ${{ env.PUSH }}
92+
push: ${{ inputs.push || (github.ref_protected && github.event_name != 'pull_request') }}
9593
image: ${{ matrix.image }}
9694
platforms: ${{ inputs.platforms || 'linux/amd64' }}
9795

9896
promote-image:
9997
name: Promote Image (${{ matrix.image }})
10098
needs: [build, tests]
10199
runs-on: ubuntu-latest
102-
if: ${{ env.PUSH }}
100+
if: ${{ inputs.push || (github.ref_protected && github.event_name != 'pull_request') }}
103101
strategy:
104102
fail-fast: false
105103
matrix:

0 commit comments

Comments
 (0)