File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ name: Add Navbar
33on :
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
79jobs :
810 add-navbar :
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
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
You can’t perform that action at this time.
0 commit comments