Skip to content

Instantly share code, notes, and snippets.

@JulienKode
Created November 21, 2019 21:05
Show Gist options
  • Save JulienKode/44c5e02ea0bac44d2b9a912fed76da13 to your computer and use it in GitHub Desktop.
Save JulienKode/44c5e02ea0bac44d2b9a912fed76da13 to your computer and use it in GitHub Desktop.
workflows:
version: 2
# The main workflow will trigger other workflow based on your changes
trigger:
when: << pipeline.parameters.trigger >>
jobs:
- trigger-workflows
- new_version:
requires:
- trigger-workflows
filters:
branches:
only:
- master
# Workflows defined for each package.
core:
when: << pipeline.parameters.core >>
jobs:
- lint:
package_name: core
components:
when: << pipeline.parameters.components >>
jobs:
- test:
package_name: components
- lint:
package_name: components
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment