diff --git a/.woodpecker/build-deploy.yaml b/.woodpecker/build-deploy.yaml index a27124e..3a09587 100644 --- a/.woodpecker/build-deploy.yaml +++ b/.woodpecker/build-deploy.yaml @@ -39,7 +39,7 @@ steps: - ls # Crée une branche orpheline (vierge, sans historique ni fichiers) - - git checkout "$PDF_BRANCH" + - git checkout --orphan "$PDF_BRANCH" - git reset --hard @@ -57,7 +57,7 @@ steps: 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 + git push origin "$PDF_BRANCH" -o ci.skip environment: SSH_KEY: from_secret: SSH-KEY