4.0.0 • Published 8 months ago

@google-automations/cron-utils v4.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

Utility for deploying repo-automation-bot crons

This is a small utility for configuring scheduled cron tasks for repo-automation-bots.

Usage

Install

npm i -g @google-automations/cron-utils

Usage

This library provides a cron-utils binary script that deploys scheduled triggers for gcf-utils based bots.

To run, call the cron-utils binary from the root directory of your bot. You will need a cron.yaml and/or cron file in that directory.

cron-utils deploy \
  --scheduler-service-account=[some-service-account]@[project-name].iam.gserviceaccount.com \
  --function-region=us-central1 \
  --region=us-central1 \
  --function-name=[name of target function] \
  --project=[project-id]
OptionDescriptionDefault
scheduler-service-accountService account email that signs requests to the scheduler proxyRequired
function-regionRegion where the function is deployedRequired
regionRegion where the scheduler proxy is deployedRequired
function-nameName of the target function/botRequired
projectName of the project where function and scheduler proxy are deployedrepo-automation-bots

cron.yaml

You can specify one or more cron tasks via a cron.yaml config file at the root of your bot.

cron:
- name: name of cron
  # crontab formatted schedule
  schedule: 0 1 * * *
  description: optional description
  # extra request parameters for scheduler http request
  params:
    foo: bar
4.0.0

8 months ago

3.2.2

1 year ago

3.2.1

1 year ago

3.2.0

2 years ago

3.1.3

2 years ago

3.1.2

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.2

2 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago