From 1562dd77d52d204a6c29c30b6d2dd6a4e7dffeb3 Mon Sep 17 00:00:00 2001 From: Bjorn Lammers Date: Sun, 20 Oct 2024 19:34:53 +0200 Subject: [PATCH] :green_heart: Fixes dev runs --- .github/workflows/compress_pngs.yml | 4 ++++ .github/workflows/convert_svg_assets.yml | 1 + .github/workflows/generate_file_tree.yml | 5 +++-- .github/workflows/generate_icons_page.yml | 1 + 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compress_pngs.yml b/.github/workflows/compress_pngs.yml index 27dd5795..c7fc26ee 100644 --- a/.github/workflows/compress_pngs.yml +++ b/.github/workflows/compress_pngs.yml @@ -3,6 +3,10 @@ name: Compress PNGs 🗜️ on: schedule: - cron: "0 0 * * 0" + push: + branches: + - main + - dev workflow_dispatch: jobs: diff --git a/.github/workflows/convert_svg_assets.yml b/.github/workflows/convert_svg_assets.yml index e0fc29f1..a3d548c5 100644 --- a/.github/workflows/convert_svg_assets.yml +++ b/.github/workflows/convert_svg_assets.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - dev workflow_dispatch: jobs: diff --git a/.github/workflows/generate_file_tree.yml b/.github/workflows/generate_file_tree.yml index 8a9f0e7d..ff5dbc46 100644 --- a/.github/workflows/generate_file_tree.yml +++ b/.github/workflows/generate_file_tree.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - dev workflow_dispatch: jobs: @@ -20,12 +21,12 @@ jobs: python-version: "3.9" - name: Generate File Tree - run: python scripts/generate_file_tree.py svg png webp + run: python scripts/generate_folder_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 add ../tree.json git commit -m ":construction_worker: Generate file tree" || exit 0 git push diff --git a/.github/workflows/generate_icons_page.yml b/.github/workflows/generate_icons_page.yml index 34e9d1ce..93ed5f11 100644 --- a/.github/workflows/generate_icons_page.yml +++ b/.github/workflows/generate_icons_page.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - dev workflow_dispatch: jobs: