-
-
Notifications
You must be signed in to change notification settings - Fork 2
fix weekly website auto update workflows #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ on: | |
|
|
||
| permissions: | ||
| contents: write | ||
| actions: write | ||
|
|
||
| jobs: | ||
| deploy: | ||
|
|
@@ -47,6 +48,8 @@ jobs: | |
|
|
||
| - name: Commit generated files | ||
| if: steps.git-check.outputs.changes == 'true' | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| run: | | ||
| git config --local user.name "github-actions[bot]" | ||
| git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
|
|
@@ -55,7 +58,7 @@ jobs: | |
| git add .gitattributes 2>/dev/null || true | ||
| git add loadedVectorStore/*.json loadedVectorStore/*.index 2>/dev/null || true | ||
| git add -A | ||
| git commit -m "chore: update generated tutorials [skip ci]" \ | ||
| git commit -m "chore: update generated tutorials" \ | ||
| -m "Automated update from write-tutorials workflow" \ | ||
| -m "Run ID: ${{ github.run_id }}" | ||
| git pull --rebase origin main || { | ||
|
|
@@ -65,6 +68,7 @@ jobs: | |
| exit 1 | ||
| } | ||
| git push origin main | ||
| gh workflow run deploy.yml --ref main | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Fresh evidence for a remaining Useful? React with 👍 / 👎. |
||
| working-directory: ./ | ||
|
|
||
| - name: Report no changes | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.