forked from yannh/kubernetes-json-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 1.04 KB
/
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
36
37
38
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: make some space
run: "sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/share/boost $AGENT_TOOLSDIRECTORY"
- 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: Love Billingskog Nyberg
commit_user_email: [email protected]
commit_author: Love Billingskog Nyberg <[email protected]>