Skip to content

Update Mega Freight to 450fffb6603fba510d377ed6e72d0229c1948f8f (#1340) #1326

Update Mega Freight to 450fffb6603fba510d377ed6e72d0229c1948f8f (#1340)

Update Mega Freight to 450fffb6603fba510d377ed6e72d0229c1948f8f (#1340) #1326

Workflow file for this run

name: Generate files
on:
push:
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo pip3 install setuptools wheel
sudo pip3 install yq
pip3 install -r scripts/requirements.txt
- name: Generate plugins.yaml
run: python scripts/generate_full_index.py manifests/ generated/plugins.yaml
- name: Generate plugins.json
run: yq '.' generated/plugins.yaml > generated/plugins.json
- name: Generate individual JSON files
run: |
mkdir -p generated/plugins
for f in manifests/*.yaml; do
stripped=$(basename "$f" .yaml)
yq '.' "$f" > "generated/plugins/$stripped.json"
done
- name: Generate PLUGINS.md
run: python3 scripts/generate_table.py generated/plugins.yaml generated/PLUGINS.md
- uses: stefanzweifel/[email protected]
with:
commit_message: Regenerate files (${{ github.sha }})
file_pattern: ./generated/*
commit_user_name: Generate files workflow
commit_author: github-actions[bot] <[email protected]>