mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2024-12-28 12:42:30 +01:00
⚡ Improves workflow runtimes
This commit is contained in:
parent
918bdc3be1
commit
4d74ddbac0
3 changed files with 21 additions and 13 deletions
6
.github/workflows/convert_svg_assets.yml
vendored
6
.github/workflows/convert_svg_assets.yml
vendored
|
@ -1,10 +1,12 @@
|
|||
name: Convert SVG Assets ♻️
|
||||
name: Convert SVG Assets 🔄
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
paths:
|
||||
- "svg/**"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
@ -36,6 +38,6 @@ jobs:
|
|||
git config --global user.email "noreply@lammers.media"
|
||||
git config --global user.name "Dashboard Icons Bot"
|
||||
git add png/ webp/
|
||||
git commit -m ":recycle: Convert SVG assets to PNG and WEBP" || exit 0
|
||||
git commit -m ":counterclockwise_arrows: Convert SVG assets to PNG and WEBP" || exit 0
|
||||
git pull --rebase origin ${{ github.ref_name }}
|
||||
git push origin HEAD:${{ github.ref_name }}
|
||||
|
|
15
.github/workflows/generate_file_tree.yml
vendored
15
.github/workflows/generate_file_tree.yml
vendored
|
@ -1,14 +1,17 @@
|
|||
name: Generate File Tree 🌳
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_run:
|
||||
workflows: ["Convert SVG Assets 🔄"]
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
workflow_dispatch:
|
||||
types:
|
||||
- completed
|
||||
|
||||
jobs:
|
||||
generate_file_tree:
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
@ -17,7 +20,7 @@ jobs:
|
|||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.ref_name }}
|
||||
ref: ${{ github.event.workflow_run.head_branch }}
|
||||
|
||||
- name: Set Up Python
|
||||
uses: actions/setup-python@v4
|
||||
|
@ -25,7 +28,7 @@ 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: |
|
||||
|
@ -33,5 +36,5 @@ jobs:
|
|||
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 }}
|
||||
git pull --rebase origin ${{ github.event.workflow_run.head_branch }}
|
||||
git push origin HEAD:${{ github.event.workflow_run.head_branch }}
|
||||
|
|
13
.github/workflows/generate_icons_page.yml
vendored
13
.github/workflows/generate_icons_page.yml
vendored
|
@ -1,14 +1,17 @@
|
|||
name: Generate Icons Page 🚀
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_run:
|
||||
workflows: ["Convert SVG Assets 🔄"]
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
workflow_dispatch:
|
||||
types:
|
||||
- completed
|
||||
|
||||
jobs:
|
||||
build_icons_page:
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
@ -17,7 +20,7 @@ jobs:
|
|||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.ref_name }}
|
||||
ref: ${{ github.event.workflow_run.head_branch }}
|
||||
|
||||
- name: Set Up Python
|
||||
uses: actions/setup-python@v4
|
||||
|
@ -33,5 +36,5 @@ jobs:
|
|||
git config --global user.name "Dashboard Icons Bot"
|
||||
git add ICONS.md
|
||||
git commit -m ":construction_worker: Generate ICONS.md" || exit 0
|
||||
git pull --rebase origin ${{ github.ref_name }}
|
||||
git push origin HEAD:${{ github.ref_name }}
|
||||
git pull --rebase origin ${{ github.event.workflow_run.head_branch }}
|
||||
git push origin HEAD:${{ github.event.workflow_run.head_branch }}
|
||||
|
|
Loading…
Reference in a new issue