From 60440beb347d70dc4e04554697d3ea5e9e0e73f0 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Wed, 17 Jan 2024 17:37:40 +0100 Subject: [PATCH] ci: split test checkout commands --- .forgejo/workflows/demo.yaml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 2be2ff6..bb9fc2c 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -15,13 +15,18 @@ jobs: - name: Debug get user and shell run: users; whoami; echo $SHELL - - name: Test checkout commands - run: "\ - git init /workspace/julien.oculi/test-forgejo-runner && \ - git remote add origin http://localhost:10001/julien.oculi/test-forgejo-runner && \ - git config --local http.http://localhost:10001/.extraheader AUTHORIZATION: basic *** && \ - git git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +2b3aefde1b6cbdf9e0a3bce32f86a0d069fc7c37:refs/remotes/origin/main" + - name: Test checkout commands (init) + run: git init /workspace/julien.oculi/test-forgejo-runner + + - name: Test checkout commands (remote) + run: git remote add origin http://localhost:10001/julien.oculi/test-forgejo-runner + - name: Test checkout commands (config) + run: "git config --local http.http://localhost:10001/.extraheader AUTHORIZATION: basic ***" + + - name: Test checkout commands (fetch) + run: git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +2b3aefde1b6cbdf9e0a3bce32f86a0d069fc7c37:refs/remotes/origin/main + # - name: Debug runner (act help) # run: act --help