From d2bebc484dee0d34e833d2a0c362f7133fcba2d9 Mon Sep 17 00:00:00 2001 From: Alexandre Garnier Date: Sun, 7 Apr 2024 17:31:56 +0200 Subject: [PATCH] Add parameter for settings the Strigo auto-fetch branch to update --- src/jobs/update.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/jobs/update.yml b/src/jobs/update.yml index 6e764c2..711c5f5 100644 --- a/src/jobs/update.yml +++ b/src/jobs/update.yml @@ -3,8 +3,13 @@ description: > parameters: config-file: + description: Path to the config file if not default type: string default: '' + fetch-branch: + description: Branch to fetch labs instructions from + type: string + default: 'strigo-fetch' docker: - image: zenika/ztraining2strigo steps: @@ -12,8 +17,9 @@ steps: - attach_workspace: at: ./ - run: - name: Update Strigo classe + name: Update Strigo class command: | mkdir --parents pdf/ mv dist/pdf/* pdf/ python3 -m ztraining2strigo <<#parameters.config-file>>--config << parameters.config-file >><> update --diff + git push origin --force origin/main:refs/heads/<< parameters.fetch-branch >>