forked from oomol-lab/open-connector
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1.39 KB
/
Copy pathstar-history.yml
File metadata and controls
37 lines (32 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Star History
# Renders this repo's star-growth chart (light/dark SVG + PNG) into
# assets/star-history/ and rewrites the marker block in README.md. The action
# detects whether star data actually changed and only commits when it did, with
# a "[skip ci]" commit message so chart refreshes don't trigger the CI workflow.
# Daily schedule keeps commit noise low; use workflow_dispatch for an on-demand
# refresh (e.g. the first run after merging this workflow).
on:
schedule:
- cron: "0 3 * * *"
workflow_dispatch:
# Serialize refreshes so a manual dispatch can't race the scheduled push.
concurrency:
group: star-history
cancel-in-progress: true
# The action commits the refreshed chart and README and pushes to main.
permissions:
contents: write
jobs:
star-history:
name: Render & Commit Chart
runs-on: ubuntu-latest
steps:
# Unlike ci.yml this checkout keeps persist-credentials on (the default):
# the action's push step authenticates with the persisted GITHUB_TOKEN.
- name: Checkout
uses: actions/checkout@v7
# Pinned to an immutable SHA rather than the mutable v1 tag: this
# third-party action holds contents:write and pushes to the repo, so its
# supply chain must not be silently updatable.
- name: Render and commit star history
uses: narayann7/star-history-action@c2061675dacbf6f35d116e556015b8905843387f # v1.0.4