Parse #208
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: Parse | |
on: | |
schedule: | |
- cron: '00 12 */7 * *' | |
workflow_dispatch: | |
inputs: | |
commitMessage: | |
description: 'PostMessage commit' | |
required: false | |
type: string | |
groupsOnly: | |
description: 'Groups to scan' | |
required: false | |
type: string | |
groupsExclude: | |
description: 'Groups to ignore' | |
required: false | |
type: string | |
env: | |
FIL_GROUPS_ONLY: ${{ inputs.groupsOnly }} | |
FIL_GROUPS_EXCLUDE: ${{ inputs.groupsExclude }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.12" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r parser/requirements.txt | |
- name: Run main | |
run: python parser/main.py | |
- name: Generate readme's and json's | |
run: python parser/generate_md_json.py | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
add: 'instances/*' | |
message: 'Update Instances lists${{ inputs.commitMessage }}' | |
default_author: github_actions | |
push: true |