File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed
Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " đź“„ Dynamic ReadME"
2+
3+ env :
4+ VS_WORKFLOW_TYPE : " dynamic-readme"
5+
6+ on :
7+ workflow_dispatch :
8+ push :
9+ branches :
10+ - main
11+ paths :
12+ - README.md
13+
14+ jobs :
15+ update_readme :
16+ name : " Render & Update ReadME"
17+ runs-on : ubuntu-latest
18+ steps :
19+ - name : " 📥 Fetching Repository Contents"
20+ uses : actions/checkout@main
21+
22+ - name : " đź’ľ Github Repository Metadata"
23+ uses : varunsridharan/action-repository-meta@main
24+ env :
25+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26+
27+ - name : " đź’« VS Utility"
28+ uses : varunsridharan/action-vs-utility@main
29+
30+ - name : " ⚡ Repository - Before Hook"
31+ run : |
32+ echo " "
33+ if [ -f $VS_BEFORE_HOOK_FILE_LOCATION ]; then
34+ echo "âś… Before Hook File Found : $VS_BEFORE_HOOK_FILE_LOCATION"
35+ sh $VS_BEFORE_HOOK_FILE_LOCATION
36+ else
37+ echo "⚠️ No Before Hook File Found : $VS_BEFORE_HOOK_FILE_LOCATION"
38+ fi
39+ echo " "
40+
41+ - name : " đź’« Update README.md"
42+ uses : " varunsridharan/action-dynamic-readme@main"
43+ with :
44+ GLOBAL_TEMPLATE_REPOSITORY : varunsridharan/varunsridharan@main/readme-templates
45+ files : |
46+ README.md
47+ env :
48+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49+
50+ - name : " ⚡ Repository - After Hook"
51+ run : |
52+ echo " "
53+ if [ -f $VS_AFTER_HOOK_FILE_LOCATION ]; then
54+ echo "âś… After Hook File Found : $VS_AFTER_HOOK_FILE_LOCATION"
55+ sh $VS_AFTER_HOOK_FILE_LOCATION
56+ else
57+ echo "⚠️ No After Hook File Found : $VS_AFTER_HOOK_FILE_LOCATION"
58+ fi
59+ echo " "
You can’t perform that action at this time.
0 commit comments