forked from instrumenta/kubernetes-json-schema
-
Notifications
You must be signed in to change notification settings - Fork 57
35 lines (31 loc) · 908 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: cron
on:
workflow_dispatch:
inputs:
prefix:
description: 'Prefix to regenerate'
required: true
default: 'master'
schedule:
- cron: "10 10 */2 * *"
jobs:
gen:
runs-on: ubuntu-latest
env:
DEFAULT_PREFIX: master
steps:
- name: checkout
uses: actions/checkout@v2
# Override PREFIX if run manually
- name: Set PREFIX
run: echo "PREFIX=${{ github.event.inputs.prefix || env.DEFAULT_PREFIX }}" >> $GITHUB_ENV
- name: delete folders to regenerate
run: "rm -rf ${{ env.PREFIX }}*"
- name: generate
run: make gen
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Adding new schemas
commit_user_name: Yann Hamon
commit_user_email: [email protected]
commit_author: Yann Hamon <[email protected]>