Skip to content

Commit 4e3acb7

Browse files
authored
feat: add used-by badge and workflow (#44)
1 parent b5d2b00 commit 4e3acb7

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

.github/workflows/used-by.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Used By
2+
3+
on:
4+
schedule:
5+
# https://crontab.guru/
6+
- cron: '0 9 * * 1' # At 09:00 on Monday.
7+
workflow_dispatch:
8+
9+
jobs:
10+
used-by:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: shenxianpeng/used-by@v0.1.2
15+
with:
16+
repo: '${{ github.repository }}'
17+
update-badge: 'true'
18+
19+
- name: Create Pull Request
20+
uses: peter-evans/create-pull-request@v6
21+
with:
22+
add-paths: "README.md" # the file path to commit
23+
commit-message: "chore: update used-by badge by github-actions[bot]"
24+
title: "chore: automatically update used-by badge"
25+
base: main
26+
labels: skip-changelog
27+
delete-branch: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
venv/

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![Main](https://github.com/commit-check/commit-check-action/actions/workflows/main.yaml/badge.svg)](https://github.com/commit-check/commit-check-action/actions/workflows/main.yaml)
44
[![Commit Check](https://github.com/commit-check/commit-check-action/actions/workflows/commit-check.yml/badge.svg)](https://github.com/commit-check/commit-check-action/actions/workflows/commit-check.yml)
55
![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/commit-check/commit-check-action)
6+
[![Used by](https://img.shields.io/static/v1?label=Used%20by&message=13&color=informational&logo=slickpic)](https://github.com/commit-check/commit-check-action/network/dependents)
67
[![GitHub marketplace](https://img.shields.io/badge/Marketplace-commit--check--action-blue)](https://github.com/marketplace/actions/commit-check-action)
78

89
A Github Action for checking commit message formatting, branch naming, committer name, email, commit signoff and more.

0 commit comments

Comments
 (0)