Skip to content

[ci] Add workflow to auto-update download count in README - #610

Merged
MysteryBlokHed merged 3 commits into
mainfrom
auto-update-downloads
Jan 31, 2025
Merged

MysteryBlokHed merged 3 commits into
mainfrom
auto-update-downloads

Conversation

@MysteryBlokHed

Copy link
Copy Markdown
Member

Briefly discussed in #609

This workflow runs a bash script to pull the latest download count from npm, and update the README.md number if the new value is larger.

Currently, it's set up to run daily.

This workflow runs a bash script to pull the latest download count from
npm, and update the README.md number if the new value is larger.
@MysteryBlokHed MysteryBlokHed changed the title [ci] Add workflow to auto-update downloads [ci] Add workflow to auto-update download count in README Dec 2, 2024
@netlify

netlify Bot commented Dec 2, 2024 •

Copy link
Copy Markdown

βœ… Deploy Preview for colorjs ready!

Name Link
πŸ”¨ Latest commit 171842a
πŸ” Latest deploy log https://app.netlify.com/sites/colorjs/deploys/676e516a25a11900085b12d5
😎 Deploy Preview https://deploy-preview-610--colorjs.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment thread .github/workflows/download_count.yaml Resolved
Makes the regex match look for the exact same string as sed does.
Probably won't actually matter, but doesn't hurt to do.
@MysteryBlokHed
MysteryBlokHed merged commit db3e23b into main Jan 31, 2025
@MysteryBlokHed
MysteryBlokHed deleted the auto-update-downloads branch January 31, 2025 13:20
@LeaVerou

LeaVerou commented Oct 4, 2025 •

Copy link
Copy Markdown
Member

How can we set it to run a bit less frequently? There are way too many commits from it. Perhaps weekly? With a way to trigger it manually so we can run it before each release for example.

@MysteryBlokHed

MysteryBlokHed commented Oct 4, 2025 •

Copy link
Copy Markdown
Member Author

The workflow_dispatch trigger adds a button in the Actions tab to run it manually ("Run workflow" dropdown on the right of the page). To run it less frequently we can adjust the crontab here:

schedule:
- cron: "0 0 * * *"

e.g. 0 0 * * 1 to run every Monday at midnight instead of every day at midnight

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