-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💬 - Files Synced | Github Action Runner : 46 | ⚡ Triggered By varunsr…
…idharan/.workflows@c283f7118db2e9770703b845ce4b2c75ea973d6f
- Loading branch information
Github Actions Workflow Sync Bot
committed
Apr 30, 2021
1 parent
d2982f1
commit 8660121
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 " " |