-
-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (51 loc) · 1.65 KB
/
dynamic-readme.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: "📄 Dynamic ReadME"
env:
VS_WORKFLOW_TYPE: "dynamic-readme"
on:
workflow_dispatch:
push:
branches:
- main
paths:
- README.md
jobs:
update_readme:
name: "Render & Update ReadME"
runs-on: ubuntu-latest
steps:
- name: "📥 Fetching Repository Contents"
uses: actions/checkout@main
- name: "💾 Github Repository Metadata"
uses: varunsridharan/action-repository-meta@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "💫 VS Utility"
uses: varunsridharan/action-vs-utility@main
- name: "⚡ Repository - Before Hook"
run: |
echo " "
if [ -f $VS_BEFORE_HOOK_FILE_LOCATION ]; then
echo "✅ Before Hook File Found : $VS_BEFORE_HOOK_FILE_LOCATION"
sh $VS_BEFORE_HOOK_FILE_LOCATION
else
echo "⚠️ No Before Hook File Found : $VS_BEFORE_HOOK_FILE_LOCATION"
fi
echo " "
- name: "💫 Update README.md"
uses: "varunsridharan/action-dynamic-readme@main"
with:
GLOBAL_TEMPLATE_REPOSITORY: varunsridharan/varunsridharan@main/readme-templates
files: |
README.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "⚡ Repository - After Hook"
run: |
echo " "
if [ -f $VS_AFTER_HOOK_FILE_LOCATION ]; then
echo "✅ After Hook File Found : $VS_AFTER_HOOK_FILE_LOCATION"
sh $VS_AFTER_HOOK_FILE_LOCATION
else
echo "⚠️ No After Hook File Found : $VS_AFTER_HOOK_FILE_LOCATION"
fi
echo " "