badges #1168
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: badges | |
on: | |
schedule: | |
# update badges every night | |
# because we have a few badges that are linked | |
# to the external repositories | |
- cron: '0 3 * * *' | |
jobs: | |
badges: | |
name: Badges | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout 🛎 | |
uses: actions/checkout@v3 | |
- name: Install dependencies 📦 | |
# https://github.com/cypress-io/github-action | |
uses: cypress-io/github-action@v5 | |
with: | |
runTests: false | |
- name: Update version badges 🏷 | |
run: npm run version-badge | |
- name: Update test counts badge 📊 | |
run: npm run demo-test-counts-badge | |
- name: Commit any changed files 💾 | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Updated badges | |
branch: main | |
file_pattern: README.md |