Skip to content

Sync Keep Workflows

Sync Keep Workflows #1

# A workflow that sync Keep workflows from a directory
on:
push:
paths:
- 'examples/workflows/**'
workflow_dispatch:
inputs:
keep_api_key:
description: 'Keep API Key'
required: false
keep_api_url:
description: 'Keep API URL'
required: false
default: 'https://api.keep.dev'
jobs:
compile:
name: Upload workflows to Keep
runs-on: ubuntu-latest
# Use the Keep CLI image
container:
image: us-central1-docker.pkg.dev/keephq/keep/keep-cli:latest
env:
KEEP_API_KEY: ${{ secrets.KEEP_API_KEY || github.event.inputs.keep_api_key }}
KEEP_API_URL: ${{ secrets.KEEP_API_URL || github.event.inputs.keep_api_url }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Run Keep CLI
run: |
keep apply -f examples/workflows