Skip to content

Commit

Permalink
use an actual image folder
Browse files Browse the repository at this point in the history
  • Loading branch information
akiraveliara committed Jul 31, 2023
1 parent 90d3358 commit 3fb2718
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ name: Regenerate Resource Files
on:
push:
paths:
- ".github/workflows/resources.yml"
- "res/**"
- ".github/workflows/images.yml"
- "img/**"
- "tools/generate-assets.sh"
workflow_dispatch:

jobs:
regenerate-assets:
name: Regenerate Resource Files
name: Regenerate Image Files
runs-on: self-hosted
steps:
- name: Checkout
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
8 changes: 4 additions & 4 deletions tools/generate-assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ regenerate()
}

# Iterate over each file matching the pattern "*.svg" in the "res" directory
for file in res/*.svg; do
for file in img/*.svg; do
# Execute the "regenerate" command on each file
regenerate "$file"
done

# Check if any files were modified
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add res > /dev/null
git add img > /dev/null
git diff-index --quiet HEAD
if [ "$?" == "1" ]; then
git commit -m "[ci-skip] Regenerate resource files." > /dev/null
git commit -m "[ci-skip] Regenerate image files." > /dev/null
git push > /dev/null
else
echo "No resource files were modified."
echo "No image files were modified."
fi

0 comments on commit 3fb2718

Please sign in to comment.