Skip to content

Commit

Permalink
Run action on tag (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
janisz authored May 12, 2022
1 parent c8ade83 commit bf3a4db
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
# Uploading Code Scanning results requires write access. Ignore dependabot branches for auto-merge.
push:
branches-ignore: "dependabot/**"
tags:
- "*"

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

Expand Down Expand Up @@ -328,4 +330,4 @@ jobs:
upload_url: ${{ steps.release_drafter.outputs.upload_url }}
asset_path: darwin/kube-linter
asset_name: kube-linter-mac
asset_content_type: application/octet-stream
asset_content_type: application/octet-stream

0 comments on commit bf3a4db

Please sign in to comment.