Skip to content

Parse

Parse #219

Workflow file for this run

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