Skip to content
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

Merged
merged 3 commits into from
Jan 25, 2024

Conversation

tony-sull
Copy link
Contributor

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.

Copy link

vercel bot commented Jan 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
astro-build ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 25, 2024 5:54pm

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run update:themes script
Copy link
Contributor Author

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)
Copy link
Contributor Author

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")) {
Copy link
Contributor Author

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

@tony-sull tony-sull marked this pull request as ready for review January 25, 2024 20:49
@tony-sull tony-sull merged commit d059f9a into main Jan 25, 2024
3 checks passed
@tony-sull tony-sull deleted the ci/themes-integrations-safe-updates branch January 25, 2024 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants