(chore) Weekly Jobs #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Because randomizing these clientside is actually complex and probably requires either a breaking API change or me maintaining duplicate information (neither of which I really want to do), this is a hacky workaround to basically regenerate and recommit the list of credit cards, which in effect will randomize which value was chosen. | |
# Running this every week produces sufficient randomization without causing too much noise. | |
name: (chore) Weekly Jobs | |
on: | |
schedule: | |
# Midnight UTC on Sundays | |
- cron: "0 0 * * */6" | |
jobs: | |
randomize-referrals: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jdx/mise-action@v2 | |
- run: pnpm i | |
- run: pnpm generate | |
- run: pnpm lint | |
- uses: EndBug/add-and-commit@v9.1.4 | |
with: | |
default_author: "github_actions" | |
add: "exports/" | |
message: "(chore) Randomize Referrals" |