Skip to content

Commit bf3a4db

Browse files
authored
Run action on tag (#334)
1 parent c8ade83 commit bf3a4db

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
# Uploading Code Scanning results requires write access. Ignore dependabot branches for auto-merge.
77
push:
88
branches-ignore: "dependabot/**"
9+
tags:
10+
- "*"
911

1012
env:
1113
# Use docker.io for Docker Hub if empty
@@ -150,7 +152,7 @@ jobs:
150152
tmp/windows/kube-linter.exe lint "tests/checks/access-to-create-pods.yml"
151153
152154
image:
153-
if: startsWith(github.ref, 'refs/tags/')
155+
if: (github.ref == 'refs/heads/main') || (startsWith(github.ref, 'refs/tags/'))
154156
needs: build-and-test
155157
runs-on: ubuntu-latest
156158

@@ -328,4 +330,4 @@ jobs:
328330
upload_url: ${{ steps.release_drafter.outputs.upload_url }}
329331
asset_path: darwin/kube-linter
330332
asset_name: kube-linter-mac
331-
asset_content_type: application/octet-stream
333+
asset_content_type: application/octet-stream

0 commit comments

Comments
 (0)