ConfigMaker #217
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ConfigMaker | |
on: | |
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@v4 | |
with: | |
token: ${{ secrets.TOKEN }} | |
- name: setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- 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: . |