Permalink
Browse files

Update CircleCI job to include approval workflow

  • Loading branch information...
clong committed Dec 22, 2018
1 parent e15bf00 commit 28a0df75bb2751f2c80d21119ae8d702e0185079
Showing with 33 additions and 6 deletions.
  1. +33 −6 .circleci/config.yml
@@ -1,16 +1,14 @@
version: 2

jobs:
hold:
machine: true
steps:
- run: echo "This build requires approval to continue..."
build:
branches:
ignore:
- master
machine: true
working_directory: ~/repo

steps:
- checkout

- run:
name: Choose which test suite to run based on which files were modified
command: |
@@ -76,3 +74,32 @@ jobs:
- store_artifacts:
path: /tmp/artifacts

workflows:
version: 2
workflow:
jobs:
- hold:
type: approval
filters:
branches:
# Don't rebuild the PR after it has been merged into master
# Users cannot push directly to master as it is a protected branch
ignore: master
- build:
requires:
- hold
filters:
branches:
# Don't rebuild the PR after it has been merged into master
ignore: master
weekly-build:
jobs:
- build
triggers:
- schedule:
cron: "0 0 * * 0"
filters:
branches:
# Automatically re-build the contents of master once per week
only: master

0 comments on commit 28a0df7

Please sign in to comment.