This repository has been archived by the owner on Oct 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add badges github workflow and badge to README
- Loading branch information
Showing
2 changed files
with
36 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: badges | ||
on: | ||
push: | ||
# update README badge only if the README file changes | ||
# or if the package.json file changes, or this file changes | ||
branches: | ||
- master | ||
paths: | ||
- README.md | ||
- package.json | ||
- .github/workflows/badges.yml | ||
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@v2 | ||
|
||
- name: Update version badges 🏷 | ||
run: npx -p dependency-version-badge update-badge cypress | ||
|
||
- name: Commit any changed files 💾 | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Updated badges | ||
branch: master | ||
file_pattern: README.md |
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