-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
1,462 additions
and
1 deletion.
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,41 @@ | ||
name: LLM Docs Update | ||
|
||
on: | ||
workflow_dispatch: # Allows manual triggering | ||
schedule: | ||
- cron: '0 0 * * *' # Runs daily at midnight UTC | ||
|
||
jobs: | ||
update-llms: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '22' | ||
|
||
- name: Compile llms.txt | ||
run: npx --yes sitefetch https://cog.run -o docs/llms.txt --concurrency 10 | ||
|
||
- name: Check for changes | ||
run: | | ||
if git diff --quiet; then | ||
echo "No changes to llms.txt; exiting." | ||
exit 0 | ||
else | ||
echo "Changes detected in llms.txt." | ||
fi | ||
- name: Commit and push changes | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git config user.name "${{ github.actor }}" | ||
git config user.email "${{ github.actor }}@users.noreply.github.com" | ||
git add docs/llms.txt | ||
git commit -m "Update llms.txt" | ||
git push origin main |
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
Oops, something went wrong.