Skip to content

Commit a60d27c

Browse files
author
Github Actions Workflow Sync Bot
committed
💬 - Files Synced | Github Action Runner : 45 | ⚡ Triggered By varunsridharan/.workflows@d57413f8a249f755f5a2f4915d22049744ca419b
1 parent 1ff8195 commit a60d27c

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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 " "

0 commit comments

Comments
 (0)