-
Notifications
You must be signed in to change notification settings - Fork 164
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
Updating weekly scripts to clean up the PR process #968
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run update:themes script |
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.
all theme updates are safe since we manually add/remove them, moved this into the nightly job
const details = await fetchWithOverrides(data.name) | ||
// skipping download counts here since existing integrations will be updated | ||
// automatically in a separate GitHub Action. | ||
const details = await fetchWithOverrides(data.name, false) |
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 is here to make sure the PR that requires manual review won't update every single integration with a new downloads counter
|
||
// only fetch unsafe changes like new and deprecated integrations | ||
// if the --unsafe CLI flag was provided | ||
if (args.includes("--unsafe")) { |
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 flag is included in the weekly GitHub Action only, nightly will run safe migrations only
This updates the weekly GitHub Action to only include unsafe content changes that need manual review.
For safe content updates, like GitHub stars for existing themes or NPM download stats for existing integrations, those now get updated in a nightly script that auto-commits updates to the repo.