Time-delayed Holds

workflow

#1

Currently, you can hold for manual approval:

workflows:
  deploy:
    jobs:
      - deploy-staging
      - hold:
          type: approval
          requires: deploy-staging
      - deploy-production
          requires: hold

It would be great if you could automatically continue the worfklow by default with a time-delay. For example:

workflows:
  deploy:
    jobs:
      - deploy-staging
      - hold:
          type: delay
          window: '1 hour'
          requires: deploy-staging
      - deploy-production
          requires: hold

This would allow continuation by default after the specified amount of time, with human intervention required to cancel the build if problems are spotted.

A scheduled trigger doesn’t quite get to the same need, as that limits the number of deploys to say “every hour”, potentially batching up multiple changes, rather than being triggered for each individual build.


#2

This definitely can be very helpful. In my case, I need a delay between two a deploy workflow and a test workflow. I’m deploying my api on Google Firebase Functions, so it takes some a few minutes until the functions are ready to be tested.


#3

I would like this to instead of sleep 300… etc


#4