From 096bd8c91b4c4bdf6f3ae1a15aeddd06903df1da Mon Sep 17 00:00:00 2001 From: asandikci Date: Sun, 19 Jan 2025 17:52:25 +0300 Subject: [PATCH] ci: allow checkout from another branch Signed-off-by: asandikci --- .forgejo/workflows/build_and_test.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/build_and_test.yml b/.forgejo/workflows/build_and_test.yml index 927061b..6b6c4ca 100644 --- a/.forgejo/workflows/build_and_test.yml +++ b/.forgejo/workflows/build_and_test.yml @@ -26,13 +26,15 @@ jobs: image: git.asandikci.com/docker-images/website_builder:latest steps: - name: Git Clone + env: + BRANCH: ${{ github.ref_name }} run: | - git clone https://git.asandikci.com/asandikci.com/web - ls -la ./web + git clone --no-checkout https://git.asandikci.com/asandikci.com/web . + git checkout --progress --force "$BRANCH" + - name: Build Site (with Drafts!) run: | - cd web bundle install bundle exec jekyll b --drafts ls -la