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 >>