Skip to content

fix update-langs, align naming - #440

Merged
martin-mfg merged 3 commits into
masterfrom
generate-language-colors
Aug 5, 2026
Merged

fix update-langs, align naming#440
martin-mfg merged 3 commits into
masterfrom
generate-language-colors

Conversation

@martin-mfg

@martin-mfg martin-mfg commented Aug 3, 2026

Copy link
Copy Markdown
Member

Like #433 for the update-langs workflow.

  • rename the workflow, script, and pnpm command for consistency
  • fix workflow which broke after upgrading js-yaml a month ago
  • reduced workflow permissions

@vercel

vercel Bot commented Aug 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
github-stats-extended-backend Ready Ready Preview Aug 5, 2026 8:18am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
github-stats-extended-frontend Ignored Ignored Aug 5, 2026 8:18am

Request Review

@martin-mfg
martin-mfg requested a review from marcalexiei August 3, 2026 13:15

@marcalexiei marcalexiei left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left a few comments with follow-up improvements, but overall this looks good to me!

Comment on lines 22 to 25
if: |
github.repository == 'anuraghazra/github-readme-stats' ||
github.repository == 'stats-organization/github-readme-stats' ||
github.repository == 'stats-organization/github-stats-extended'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considering anuraghazra#4895, can we remove the checks for anuraghazra/github-readme-stats and stats-organization/github-readme-stats?

The same would apply to generate-theme-readme and any other workflows that have similar checks.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

update-languages:
if: |
github.repository == 'anuraghazra/github-readme-stats' ||
github.repository == 'stats-organization/github-readme-stats' ||

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not strictly related to this PR, but since we're here, I'd consider archiving stats-organization/github-readme-stats now that anuraghazra#4895 has been merged.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considering that the workflows were broken due to the code changes, maybe we should also run these workflows on a schedule trigger.
They wouldn't open any PRs, but they would at least let us verify that the workflows are still working.

Alternatively, we could add unit tests for the scripts (easy to catch when updating deps).

Either approach should probably be explored in a separate PR and will help avoid regressions like the ones we just experienced.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now I added a cron trigger. generate-language-colors triggers more often than before, because GitHub can drop executions and we probably don't want to wait several months for an execution. And the trigger is not at 0:00 anymore, to avoid load peaks from other GitHub users, as recommended in the GitHub docs.

Adding unit tests also sounds good to catch problems with dependency upgrades before they get merged to master. I don't have time to create them at the moment, but in case you want to do this, you're very welcome.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've opened #445

@martin-mfg
martin-mfg merged commit 5156202 into master Aug 5, 2026
12 checks passed
@martin-mfg
martin-mfg deleted the generate-language-colors branch August 5, 2026 10:28
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