Skip to content

Commit

Permalink
Merge pull request #31 from insightsengineering/render_icons_from_png
Browse files Browse the repository at this point in the history
Renders icons from PNG folder
  • Loading branch information
epijim authored Jan 24, 2024
2 parents 3387eff + 09147c5 commit e755895
Show file tree
Hide file tree
Showing 37 changed files with 41 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/render_readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 added ICO/Biomarker.ico
Binary file not shown.
Binary file added ICO/DataFakeR.ico
Binary file not shown.
Binary file added ICO/GitStats.ico
Binary file not shown.
Binary file added ICO/PharmaDevOps.ico
Binary file not shown.
Binary file added ICO/RDO.ico
Binary file not shown.
Binary file added ICO/Rbasel.ico
Binary file not shown.
Binary file added ICO/StatisticalEngineering.ico
Binary file not shown.
Binary file added ICO/TLG.ico
Binary file not shown.
Binary file added ICO/admiral.ico
Binary file not shown.
Binary file added ICO/chevron.ico
Binary file not shown.
Binary file added ICO/covtracer.ico
Binary file not shown.
Binary file added ICO/crmPack.ico
Binary file not shown.
Binary file added ICO/facetsr.ico
Binary file not shown.
Binary file added ICO/formatters.ico
Binary file not shown.
Binary file added ICO/ggplot2.utils.ico
Binary file not shown.
Binary file added ICO/helios.ico
Binary file not shown.
Binary file added ICO/hermes.ico
Binary file not shown.
Binary file added ICO/jmpost.ico
Binary file not shown.
Binary file added ICO/mmrm.ico
Binary file not shown.
Binary file added ICO/nest.ico
Binary file not shown.
Binary file added ICO/ocean.ico
Binary file not shown.
Binary file added ICO/pharmaverse.ico
Binary file not shown.
Binary file added ICO/psborrow2.ico
Binary file not shown.
Binary file added ICO/rbmi.ico
Binary file not shown.
Binary file added ICO/rlistings.ico
Binary file not shown.
Binary file added ICO/rtables.ico
Binary file not shown.
Binary file added ICO/sasr.ico
Binary file not shown.
Binary file added ICO/scda.ico
Binary file not shown.
Binary file added ICO/simaerep.ico
Binary file not shown.
Binary file added ICO/staged.dependencies.ico
Binary file not shown.
Binary file added ICO/teal.gallery.ico
Binary file not shown.
Binary file added ICO/teal.ico
Binary file not shown.
Binary file added ICO/tern.ico
Binary file not shown.
Binary file added ICO/thevalidatoR.ico
Binary file not shown.
Binary file added ICO/visR.ico
Binary file not shown.
14 changes: 14 additions & 0 deletions scripts/png-to-ico.bash
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

0 comments on commit e755895

Please sign in to comment.