File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ name: Add Navbar
3
3
on :
4
4
page_build : # Triggers the workflow on push events to gh-pages branch
5
5
workflow_dispatch : # Allows manual triggering
6
+ schedule :
7
+ - cron : ' 0 0 * * 0' # Runs every week on Sunday at midnight (UTC)
6
8
7
9
jobs :
8
10
add-navbar :
27
29
run : |
28
30
git config user.name github-actions[bot]
29
31
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"
30
35
31
36
# Update all HTML files in the current directory (gh-pages root)
32
- ./insert_navbar.sh .
37
+ ./insert_navbar.sh . $NAVBAR_URL
33
38
34
39
# Remove the insert_navbar.sh file
35
40
rm insert_navbar.sh
41
46
git push "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" gh-pages
42
47
else
43
48
echo "No changes to commit"
44
- fi
49
+ fi
You can’t perform that action at this time.
0 commit comments