-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.15 KB
/
banner-generator.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
39
40
41
42
43
44
45
46
47
48
49
name: ConfigMaker
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v3
with:
token: ${{ secrets.TOKEN }}
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: pip install -r requirements.txt
- name: Generate Config
env:
POST_URL: ${{ secrets.POST_URL }}
CREATION_POST_ENDPOINT: ${{ secrets.CREATION_POST_ENDPOINT }}
run : |
python ${{ github.workspace }}/main.py
- name: Commit Output
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automated Change
branch: main
create_branch: true
commit_options: '--no-verify --signoff'
file_pattern: 'banner-data.json post-data.json upload/*'
repository: .