Skip to content

Commit

Permalink
feat:update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tiavina-mika committed Jun 15, 2024
1 parent 6faa747 commit b073500
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/add-badges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ jobs:
"badge": "https://img.shields.io/badge/language-TypeScript-blue.svg?style=flat-square",
"alt": "Language",
"link": "https://www.typescriptlang.org"
},
{
"badge": "https://img.shields.io/github/last-commit/${{ env.repo_owner }}/${{ env.repo_name }}?style=flat-square",
"alt": "Last Commit",
"link": "${{ env.repo_url }}/commits/master"
}
]
# if adding the last commit badge
# {
# "badge": "https://img.shields.io/github/last-commit/${{ env.repo_owner }}/${{ env.repo_name }}?style=flat-square",
# "alt": "Last Commit",
# "link": "${{ env.repo_url }}/commits/master"
# }
32 changes: 32 additions & 0 deletions .github/workflows/check-badges.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This action use https://github.com/wow-actions/add-badges?tab=readme-ov-file to add badges to your README.md file.
# this update the reame state every hour
name: Chack Badges

on:
schedule:
- cron: "* */1 * * *"

jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/add-badges@v1
env:
repo_url: ${{ github.event.repository.html_url }}
repo_name: ${{ github.event.repository.name }}
repo_owner: ${{ github.event.repository.owner.login }}
with:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
badges: |
[
{
"badge": "https://img.shields.io/npm/v/${{ env.repo_name }}?style=flat-square",
"alt": "NPM Version",
"link": "https://www.npmjs.com/package/${{ env.repo_name }}"
},
{
"badge": "https://img.shields.io/badge/language-TypeScript-blue.svg?style=flat-square",
"alt": "Language",
"link": "https://www.typescriptlang.org"
}
]

0 comments on commit b073500

Please sign in to comment.