Skip to content

Commit

Permalink
Merge fbc317c into 61d8e85
Browse files Browse the repository at this point in the history
  • Loading branch information
shravanngoswamii authored Jul 14, 2024
2 parents 61d8e85 + fbc317c commit f9f94c9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/DocsNav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Add Navbar
on:
page_build: # Triggers the workflow on push events to gh-pages branch
workflow_dispatch: # Allows manual triggering
schedule:
- cron: '0 0 * * 0' # Runs every week on Sunday at midnight (UTC)

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

0 comments on commit f9f94c9

Please sign in to comment.