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 option to disable checkout-if-exists #76

Merged
merged 1 commit into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed

## [2.7.0] - 2024-04-12

### Added

- Added `checkout_if_exists` option to `build.yml`. This gives the option to turn off `mepo checkout-if-exists` (needed for LDAS workflow). By default, it is `true`.

## [2.6.0] - 2024-04-04

### Changed
Expand Down
8 changes: 6 additions & 2 deletions src/jobs/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ parameters:
description: "Checkout MAPL branch"
type: boolean
default: false
checkout_if_exists:
description: "Run mepo checkout-if-exists"
type: boolean
default: true
persist_workspace:
description: "Persist the workspace?"
type: boolean
Expand Down Expand Up @@ -186,8 +190,8 @@ steps:
steps:
- checkout_mapl_branch:
repo: << parameters.repo >>
- unless:
condition: << parameters.checkout_mapl_branch >>
- when:
condition: << parameters.checkout_if_exists >>
steps:
- checkout_if_exists:
repo: << parameters.repo >>
Expand Down