From 5ebfd6dc7929f9c47cd01bb26c88cbc4803868f8 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 6 May 2024 23:42:43 +0200 Subject: [PATCH] ci: fix when --- .woodpecker/build.yml | 3 ++- .woodpecker/lint.yml | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index eae7773..e0411fb 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -53,5 +53,6 @@ steps: --label org.opencontainers.image.created=$DATE \ --file Dockerfile . when: - - evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' + - event: [push, pull_request] + evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' ... diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml index 5faa4cb..8d2307b 100644 --- a/.woodpecker/lint.yml +++ b/.woodpecker/lint.yml @@ -5,14 +5,16 @@ steps: commands: - gitleaks detect --no-git --verbose --source $CI_WORKSPACE when: - - evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' + - event: [push, pull_request] + evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' hadolint: image: pipelinecomponents/hadolint:0.26.1 commands: - hadolint Dockerfile when: - - evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' + - event: [push, pull_request] + evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' shellcheck: image: "koalaman/shellcheck-alpine:v0.10.0" @@ -25,5 +27,6 @@ steps: fi done when: - - evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' + - event: [push, pull_request] + evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' ...