From 21c16b408121cb12a52258418115567c1cee0d4a Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 6 Feb 2024 21:03:15 +0100 Subject: [PATCH] ci: migrate to new "when" --- .woodpecker/ansible-lint.yml | 7 +++---- .woodpecker/gitleaks.yml | 5 ++--- .woodpecker/lint.yml | 8 ++------ 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.woodpecker/ansible-lint.yml b/.woodpecker/ansible-lint.yml index b57eb0f9..6edb311a 100644 --- a/.woodpecker/ansible-lint.yml +++ b/.woodpecker/ansible-lint.yml @@ -11,10 +11,9 @@ steps: - echo $${VAULTPASS} > ./vault-pass.yml # nach des Secret in Großschreibung - ansible-galaxy install -r requirements.yml - ansible-lint --force-color --format pep8 - when: - event: - exclude: - - tag secrets: - source: vault-pass # name des Secrets in Woodpecker/GUI target: vaultpass # lower-case Name der Variable zur Verwendung in dem CI-File, wird dann so genutzt $${VAULTPASS} + when: + - evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' +... diff --git a/.woodpecker/gitleaks.yml b/.woodpecker/gitleaks.yml index 971234d2..ac209a09 100644 --- a/.woodpecker/gitleaks.yml +++ b/.woodpecker/gitleaks.yml @@ -5,6 +5,5 @@ steps: commands: - gitleaks detect --no-git --verbose --source $CI_WORKSPACE when: - event: - exclude: - - tag + - evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' +... diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml index 84ffa2c4..43fb2161 100644 --- a/.woodpecker/lint.yml +++ b/.woodpecker/lint.yml @@ -5,9 +5,7 @@ steps: commands: - gitleaks detect --no-git --verbose --source $CI_WORKSPACE when: - event: - exclude: - - tag + - evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' shellcheck: image: registry.mgrote.net/allzweckcontainer@sha256:2623b8487e29abc93fa6d65282323baed54fd8f034c5aea3be4fd71293db69bb @@ -20,7 +18,5 @@ steps: fi done when: - event: - exclude: - - tag + - evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' ...