From a5b24056e218e9e99e4552fb652f67c8e2e88e91 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 14 May 2024 21:45:03 +0200 Subject: [PATCH] ci: fix when cron --- .woodpecker/build.yml | 4 ++-- .woodpecker/lint.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index 432c19c..f75c99c 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -29,7 +29,7 @@ steps: DATE=$(date --iso-8601=seconds) echo "DATE=$DATE" >> .variables when: - - event: [push, pull_request] + - event: [push, pull_request, cron] evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' build_and_push: # damit dieser Step laufen kann muss das Repo in der Woodpecker-GUI "privilegiert" sein @@ -56,6 +56,6 @@ steps: --label org.opencontainers.image.created=$DATE \ --file Dockerfile . when: - - event: [push, pull_request] + - event: [push, pull_request, cron] evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' ... diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml index 8d2307b..1f802f7 100644 --- a/.woodpecker/lint.yml +++ b/.woodpecker/lint.yml @@ -5,7 +5,7 @@ steps: commands: - gitleaks detect --no-git --verbose --source $CI_WORKSPACE when: - - event: [push, pull_request] + - event: [push, pull_request, cron] evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' hadolint: @@ -13,7 +13,7 @@ steps: commands: - hadolint Dockerfile when: - - event: [push, pull_request] + - event: [push, pull_request, cron] evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' shellcheck: @@ -27,6 +27,6 @@ steps: fi done when: - - event: [push, pull_request] + - event: [push, pull_request, cron] evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' ...