generated from varunsridharan/git-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
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 : 45 | ⚡ Triggered By varunsr…
…idharan/.workflows@d57413f8a249f755f5a2f4915d22049744ca419b
- Loading branch information
Github Actions Workflow Sync Bot
committed
Apr 11, 2021
1 parent
958d6c9
commit e922dab
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 " " |