File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Example Merge Workflow
2+ on :
3+ push :
4+ branches : [main]
5+
6+ permissions :
7+ contents : write # Required for GitHub Pages upload
8+
9+ jobs :
10+ badges :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+ with :
15+ fetch-depth : 0 # Needed for git operations
16+
17+ - name : Setup Node.js
18+ uses : actions/setup-node@v4
19+ with :
20+ node-version : " 20"
21+
22+ - name : Install dependencies
23+ run : npm ci
24+
25+ - name : Run tests with coverage
26+ run : npm test
27+
28+ # Generate badges
29+ - name : Generate Badges
30+ uses : ./
31+ with :
32+ action : " badge-generator-action.yml"
33+ coverage-file : " coverage/coverage-summary.json"
34+ badges-dir : " badges"
35+
36+ # Upload badges to GitHub Pages
37+ - name : Upload Badges to GitHub Pages
38+ uses : ./
39+ with :
40+ action : " badge-upload-action.yml"
41+ badges-dir : " badges"
42+ pages-branch : " gh-pages"
43+ pages-badges-dir : " badges"
44+ generate-badges : " false" # Use existing badges
You can’t perform that action at this time.
0 commit comments