mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-10-20 11:44:39 +00:00
docs: live star history chart, drop the generated one (#1414)
This commit is contained in:
parent
bf2005fa47
commit
7d53bf36dc
6 changed files with 7 additions and 90 deletions
79
.github/workflows/star-history.yml
vendored
79
.github/workflows/star-history.yml
vendored
|
|
@ -1,79 +0,0 @@
|
|||
name: Star History
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "23 4 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
concurrency:
|
||||
group: star-history
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
update:
|
||||
if: github.ref_name == github.event.repository.default_branch
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
# Pin the action to an immutable revision because this workflow grants
|
||||
# write access to the repository. commit: false keeps generation here;
|
||||
# publishing is a rolling review branch so main's pull-request rule
|
||||
# (GH013) is preserved. This workflow does not open pull requests.
|
||||
- id: charts
|
||||
uses: narayann7/star-history-action@a68d8f9d67ca20d55b682a264e69152dcf326e9c
|
||||
with:
|
||||
repos: getagentseal/codeburn
|
||||
output-dir: assets/star-history
|
||||
type: Date
|
||||
themes: light,dark
|
||||
width: "960"
|
||||
commit: "false"
|
||||
|
||||
- name: Prepare star-history review branch
|
||||
if: steps.charts.outputs.changed == 'true'
|
||||
env:
|
||||
BRANCH: chore/star-history
|
||||
BASE: ${{ github.event.repository.default_branch }}
|
||||
SERVER: ${{ github.server_url }}
|
||||
REPOSITORY: ${{ github.repository }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
git add assets/star-history README.md
|
||||
if git diff --cached --quiet; then
|
||||
echo "Generator reported a change, but the worktree matches HEAD; nothing to publish."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
git switch -C "$BRANCH"
|
||||
git commit -m "chore: update star history"
|
||||
|
||||
if git ls-remote --exit-code --heads origin "$BRANCH" >/dev/null; then
|
||||
git fetch origin "$BRANCH"
|
||||
git push --force-with-lease origin "HEAD:refs/heads/${BRANCH}"
|
||||
else
|
||||
git push -u origin "HEAD:refs/heads/${BRANCH}"
|
||||
fi
|
||||
|
||||
compare_url="${SERVER}/${REPOSITORY}/compare/${BASE}...${BRANCH}?expand=1"
|
||||
{
|
||||
echo "## Star history review branch"
|
||||
echo
|
||||
echo "Charts changed. The rolling review branch was published; open or refresh the pull request from this comparison URL. Actions does not create or approve pull requests."
|
||||
echo
|
||||
echo "| | |"
|
||||
echo "| --- | --- |"
|
||||
echo "| Server | ${SERVER} |"
|
||||
echo "| Repository | ${REPOSITORY} |"
|
||||
echo "| Base | ${BASE} |"
|
||||
echo "| Branch | ${BRANCH} |"
|
||||
echo
|
||||
echo "[Open pull request]($compare_url)"
|
||||
} >> "$GITHUB_STEP_SUMMARY"
|
||||
15
README.md
15
README.md
|
|
@ -896,14 +896,13 @@ Sponsoring as a team or company? Your logo lands right here, in front of every d
|
|||
|
||||
## Star History
|
||||
|
||||
<p align="center">
|
||||
<!-- star-history:start -->
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="assets/star-history/star-history-dark.svg">
|
||||
<img alt="Star history" src="assets/star-history/star-history-light.svg">
|
||||
</picture>
|
||||
<!-- star-history:end -->
|
||||
</p>
|
||||
<a href="https://www.star-history.com/?repos=getagentseal%2Fcodeburn&type=date&legend=top-left">
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=getagentseal/codeburn&type=date&theme=dark&legend=top-left" />
|
||||
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=getagentseal/codeburn&type=date&legend=top-left" />
|
||||
<img alt="Star History Chart" src="https://api.star-history.com/chart?repos=getagentseal/codeburn&type=date&legend=top-left" />
|
||||
</picture>
|
||||
</a>
|
||||
|
||||
## License
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
6985f4eea90d8dcfb245cb6391558eac1e8e3f72993f2dbcc0181d64c34c4146
|
||||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 213 KiB |
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 213 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 64 KiB |
Loading…
Add table
Add a link
Reference in a new issue