Update Jibauni to 930eb0b2cbf23a786e39429665741c64f43c1c89 (#1425) #1414
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: Generate files | |
on: | |
push: | |
jobs: | |
generate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo pip3 install --break-system-packages setuptools wheel | |
sudo pip3 install --break-system-packages yq | |
pip3 install --break-system-packages -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]> |