Skip to content

Commit 3296ae3

Browse files
Update DocsNav.yml (#39)
1 parent e629139 commit 3296ae3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/DocsNav.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Add Navbar
33
on:
44
page_build: # Triggers the workflow on push events to gh-pages branch
55
workflow_dispatch: # Allows manual triggering
6+
schedule:
7+
- cron: '0 0 * * 0' # Runs every week on Sunday at midnight (UTC)
68

79
jobs:
810
add-navbar:
@@ -27,9 +29,12 @@ jobs:
2729
run: |
2830
git config user.name github-actions[bot]
2931
git config user.email github-actions[bot]@users.noreply.github.com
32+
33+
# Define the URL of the navbar to be used
34+
NAVBAR_URL="https://raw.githubusercontent.com/TuringLang/turinglang.github.io/main/assets/scripts/TuringNavbar.html"
3035
3136
# Update all HTML files in the current directory (gh-pages root)
32-
./insert_navbar.sh .
37+
./insert_navbar.sh . $NAVBAR_URL
3338
3439
# Remove the insert_navbar.sh file
3540
rm insert_navbar.sh
@@ -41,4 +46,4 @@ jobs:
4146
git push "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" gh-pages
4247
else
4348
echo "No changes to commit"
44-
fi
49+
fi

0 commit comments

Comments
 (0)