From 26d844a4df594c4aafbc265b64904329982c33f9 Mon Sep 17 00:00:00 2001 From: Caspar Jungbacker Date: Mon, 17 Apr 2023 12:44:22 +0200 Subject: [PATCH] Checkout branch in `before_script` --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6cd7f01..dd9d388 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,5 +31,8 @@ push-html: stage: deploy only: - main - script: + before_script: + - git fetch origin publish-html - git checkout publish-html + script: + - git status