Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parameter for settings the Strigo auto-fetch branch to update #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/jobs/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,23 @@ 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:
- checkout
- 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 >><</parameters.config-file>> update --diff
git push origin --force origin/main:refs/heads/<< parameters.fetch-branch >>