Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 8eb9667

Browse files
authored
Merge pull request #18 from reload/feature/dynamic-workflow-name
2 parents c0c4150 + 9080c50 commit 8eb9667

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/docker-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
on: push
22

3-
name: Docker build and push
4-
jobs:
3+
name: Build. Publish on merge
54

5+
jobs:
66
build:
7-
name: Docker build and push
7+
name: Docker build${{ (github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && ' and push') || '' }}
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v3
@@ -24,7 +24,7 @@ jobs:
2424
registry: ghcr.io
2525
username: ${{ github.repository_owner }}
2626
password: ${{ github.token }}
27-
- name: Build and push Docker images
27+
- name: Build${{ (github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && ' and push') || '' }} Docker images
2828
uses: docker/build-push-action@v3
2929
with:
3030
file: Dockerfile

0 commit comments

Comments
 (0)