Skip to content

update-badges

update-badges #5437

Workflow file for this run

name: update-badges
on:
workflow_dispatch:
push:
branches:
- main
schedule:
- cron: "0 */6 * * *"
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: |
any::gh
any::jsonlite
- name: Make svgs
run: Rscript "update_badges.R"
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: pkgsvgs
git-config-name: ropenscibot
git-config-email: [email protected]
- name: Notify on failure
if: ${{ failure() }}
uses: ropensci-review-tools/actions/ping-dev-team@v2
with:
REPO_NAME: 'badges'
ISSUE_NUM: 18
TOKEN: ${{ secrets.GITHUB_TOKEN }}