-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (45 loc) · 1.18 KB
/
parse.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
50
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