-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (39 loc) · 1.31 KB
/
Copy pathcodeflow-card.yml
File metadata and controls
45 lines (39 loc) · 1.31 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
38
39
40
41
42
43
44
45
name: CodeFlow Card
# Recomputes the codeflow stats card on every merge to main and on every
# closed PR. The Action commits .github/codeflow-card.svg back to the repo;
# the README references it via <img src=".github/codeflow-card.svg">.
on:
push:
branches: [main]
pull_request:
types: [closed]
workflow_dispatch:
permissions:
contents: write
pull-requests: write
concurrency:
group: codeflow-card-${{ github.ref }}
cancel-in-progress: false
jobs:
card:
runs-on: ubuntu-latest
# Skip PR-close events that weren't merged (avoids running on closed-without-merge).
if: github.event_name != 'pull_request' || github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Render CodeFlow Card
uses: braedonsaunders/codeflow/card@v1
with:
# Single SVG that adapts to the viewer's system theme via
# prefers-color-scheme — looks native on light and dark READMEs.
theme: auto
style: compact
# Green/blue accent (preset).
accent: teal
# Public README — show structure, not judgment.
show-grade: false
show-score: false
# Flip to true to enable thermal-receipt PR comments on every merge.
receipts: false