Skip to content

Commit e25bb54

Browse files
Merge branch 'eclipse-leda:main' into main
2 parents 260768f + 7707bc7 commit e25bb54

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: .github/actions/build-container-image/action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ runs:
6363
id: build-and-push
6464
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
6565
with:
66-
push: true
66+
push: ${{ github.event_name == 'push' }}
6767
context: .
6868
platforms: linux/${{ inputs.arch }}
6969
file: Dockerfile.${{ inputs.arch }}

Diff for: .github/workflows/main.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
token: ${{ secrets.GITHUB_TOKEN }}
4848

4949
push-container-image:
50+
if: github.event_name == 'push'
5051
runs-on: ubuntu-latest
5152
needs: build-container-image
5253
steps:
@@ -113,6 +114,7 @@ jobs:
113114
uses: actions/download-artifact@v2
114115

115116
- name: Upload artifacts to build results
117+
if: github.event_name == 'push'
116118
uses: marvinpinto/action-automatic-releases@latest
117119
with:
118120
repo_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)