From f60e4c0b60ce8b64d759d193aac8360dd1417d91 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 14 May 2024 21:45:09 +0200 Subject: [PATCH] ci: fix when cron --- .woodpecker/build.yml | 4 ++-- .woodpecker/lint.yml | 8 ++++---- 2 files changed, 6 insertions(+), 6 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 b5afd67..846b46b 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"' pylint: @@ -22,7 +22,7 @@ steps: - pip3 install --no-cache-dir --break-system-packages -r requirements.txt - pylint app.py when: - - event: [push, pull_request] + - event: [push, pull_request, cron] evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' shellcheck: @@ -36,6 +36,6 @@ steps: fi done when: - - event: [push, pull_request] + - event: [push, pull_request, cron] evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' ...