Skip to content

Commit 9933144

Browse files
authored
Add ok-to-publish label handling in docker publish workflow (#174)
1 parent 22b242c commit 9933144

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish-docker.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
tags:
1111
- v*
1212
pull_request:
13+
paths-ignore:
14+
- 'docs/**'
15+
- '**/*.md'
16+
types: [labeled, unlabeled, opened, synchronize, reopened]
1317

1418
permissions:
1519
contents: read
@@ -67,4 +71,4 @@ jobs:
6771
platforms: ${{ env.platforms }}
6872
tags: ${{ steps.meta.outputs.tags }}
6973
labels: ${{ steps.meta.outputs.labels }}
70-
push: ${{ github.event_name != 'pull_request' }}
74+
push: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'ok-to-publish') }}

0 commit comments

Comments
 (0)