Merge pull request #38 from insightsengineering/autoslider #60
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
name: Render README | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: | |
group: readme-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
render: | |
name: Render README | |
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 | |
- name: Render README | |
run: | | |
install.packages("magick", quiet = TRUE) | |
rmarkdown::render("README.Rmd") | |
shell: Rscript {0} | |
- name: Commit and push changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "[skip actions] Render README.md" | |
file_pattern: README.md thumbs/*.png hexwall.png docs/* | |
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] |