From 72714c743eb4c3da2457732428f4c92781f6665e Mon Sep 17 00:00:00 2001 From: Louis Date: Tue, 30 Sep 2025 14:27:19 +0200 Subject: [PATCH] Always comitting --- .woodpecker/build-deploy.yaml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.woodpecker/build-deploy.yaml b/.woodpecker/build-deploy.yaml index c3730fb..6dca43d 100644 --- a/.woodpecker/build-deploy.yaml +++ b/.woodpecker/build-deploy.yaml @@ -50,19 +50,14 @@ steps: - git add -f cv.pdf - git status - |- - # Check if we have modifications to commit - CHANGES=$(git status --porcelain | wc -l) + # Show the status of files that are about to be created, updated or deleted + git status - if [ "$CHANGES" -gt "0" ]; then - # Show the status of files that are about to be created, updated or deleted - git status + # Commit all changes + git commit -m "Built pdf for ${CI_COMMIT_SHA:0:8} [CI SKIP]" - # Commit all changes - git commit -m "Built pdf for ${CI_COMMIT_SHA:0:8} [CI SKIP]" - - # Update the repository and make sure to skip the pipeline create for this commit - git push origin "${CI_REPO_DEFAULT_BRANCH}" -o ci.skip - fi + # Update the repository and make sure to skip the pipeline create for this commit + git push origin "${CI_REPO_DEFAULT_BRANCH}" -o ci.skip environment: SSH_KEY: from_secret: SSH-KEY