1
0
Fork 0
mirror of https://github.com/walkxcode/dashboard-icons.git synced 2024-11-23 19:59:17 +01:00
dashboard-icons/.github/workflows/generate_file_tree.yml
Bjorn Lammers 4dda538f82
💚 Fixes file path
2024-10-20 19:45:56 +02:00

37 lines
947 B
YAML

name: Generate File Tree 🌳
on:
push:
branches:
- main
- dev
workflow_dispatch:
jobs:
generate_file_tree:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
ref: ${{ github.ref_name }}
- name: Set Up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Generate File Tree
run: python scripts/generate_file_tree.py ../svg ../png ../webp
- name: Commit and Push Changes
run: |
git config --global user.email "noreply@lammers.media"
git config --global user.name "Dashboard Icons Bot"
git add tree.json
git commit -m ":construction_worker: Generate file tree" || exit 0
git pull --rebase origin ${{ github.ref_name }}
git push origin HEAD:${{ github.ref_name }}