-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from insightsengineering/render_icons_from_png
Renders icons from PNG folder
- Loading branch information
Showing
37 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/insightsengineering/rstudio_4.2.1_bioc_3.15:latest | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
@@ -34,3 +35,29 @@ jobs: | |
commit_user_name: insights-engineering-bot | ||
commit_user_email: >- | ||
[email protected] | ||
icons: | ||
name: Generate Icons | ||
runs-on: ubuntu-latest | ||
if: ${{ always() }} | ||
needs: render | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Ensure icon directory exists | ||
run: | | ||
mkdir -p ICO | ||
- name: Run script to update icons | ||
run: | | ||
cd scripts | ||
bash png-to-ico.bash | ||
- name: Commit and push changes | ||
|
||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: "[skip actions] Update ICO folder" | ||
file_pattern: ICO/*.ico | ||
commit_user_name: insights-engineering-bot | ||
commit_user_email: >- | ||
[email protected] |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
ICON_FOLDER="../ICO" | ||
|
||
mkdir -p "$ICON_FOLDER" | ||
|
||
shopt -s globstar | ||
for img in ../PNG/*.png; do | ||
new_ico=$(basename $img) | ||
new_ico=${new_ico%.png}.ico | ||
|
||
|
||
convert -resize x256 -gravity center -crop 256x256+0+0 "$img" -background transparent -extent 256x256 "$ICON_FOLDER/$new_ico" | ||
done |