From bf3a4dbd967cc339025264828782cf71fd705a8c Mon Sep 17 00:00:00 2001 From: Tomasz Janiszewski Date: Thu, 12 May 2022 16:30:00 +0200 Subject: [PATCH] Run action on tag (#334) --- .github/workflows/build.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index bebaed174..1ec03dbe6 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 @@ -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 @@ -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 \ No newline at end of file + asset_content_type: application/octet-stream