-
Notifications
You must be signed in to change notification settings - Fork 123
chore: add Context7 auto-refresh workflow [no-ci] #688
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 | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,17 @@ | ||||||||
| name: Update Context7 Documentation | ||||||||
|
|
||||||||
| on: | ||||||||
| release: | ||||||||
| types: [published] | ||||||||
| workflow_dispatch: | ||||||||
|
|
||||||||
| jobs: | ||||||||
| update-docs: | ||||||||
| runs-on: ubuntu-latest | ||||||||
| steps: | ||||||||
| - uses: actions/checkout@v4 | ||||||||
| - name: Update Context7 Documentation | ||||||||
| id: context7 | ||||||||
| uses: rennf93/upsert-context7@1.1 | ||||||||
|
||||||||
| uses: rennf93/upsert-context7@1.1 | |
| # Pin to the exact commit for the intended 1.1 release. | |
| uses: rennf93/upsert-context7@<FULL_40_CHAR_COMMIT_SHA_FOR_V1_1> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workflow relies on the repository’s default
GITHUB_TOKENpermissions. To ensure it behaves consistently across repos/orgs (and to follow least-privilege), add an explicitpermissions:block at the workflow or job level (e.g., start withcontents: readand only add additional scopes ifupsert-context7requires them).