Every 5 Minutes Mining (client) #16614
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
name: Every 5 Minutes Mining (client) | |
on: | |
schedule: | |
- cron: "*/5 * * * *" | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
mine: | |
name: mine ${{ matrix.channel }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
channel: | |
- stable | |
- ptb | |
- canary | |
- development | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- uses: oven-sh/setup-bun@v2 | |
- name: Setup git | |
run: | | |
git config --global url.https://hyros-dataminer[bot]:${{ secrets.GITHUB_TOKEN }}@github.com/.insteadOf https://github.com/ | |
git config --global user.name "hyros-dataminer[bot]" | |
git config --global user.email "154810797+hyros-dataminer[bot]@users.noreply.github.com" | |
git config pull.rebase true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install dependencies | |
run: bun install | |
- name: Run | |
run: bun run start | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }} | |
DISCORD_WEBHOOK_BUILDS: ${{ secrets.DISCORD_WEBHOOK_BUILDS }} | |
WUMPUSCENTRAL_DISCORD_WEBHOOK_BUILDS: ${{ secrets.WUMPUSCENTRAL_DISCORD_WEBHOOK_BUILDS }} # builds but for wumpuscentral | |
DISCORD_WEBHOOK_HOST_BUILDS: ${{ secrets.DISCORD_WEBHOOK_HOST_BUILDS }} | |
DISCORD_WEBHOOK_ROUTES: ${{ secrets.DISCORD_WEBHOOK_ROUTES }} | |
DISCORD_WEBHOOK_STRINGS: ${{ secrets.DISCORD_WEBHOOK_STRINGS }} | |
DISCORD_WEBHOOK_STYLESHEETS: ${{ secrets.DISCORD_WEBHOOK_STYLESHEET }} # todo: change to STYLESHEETS | |
DISCORD_WEBHOOK_EXPERIMENTS: ${{ secrets.DISCORD_WEBHOOK_EXPERIMENTS }} | |
WUMPUSCENTRAL_DISCORD_WEBHOOK_EXPERIMENTS: ${{ secrets.WUMPUSCENTRAL_DISCORD_WEBHOOK_EXPERIMENTS }} # experiments but for wumpuscentral | |
WUMPUSCENTRAL_DISCORD_WEBHOOK_EXPERIMENT_ROLLOUTS: ${{ secrets.WUMPUSCENTRAL_DISCORD_WEBHOOK_EXPERIMENT_ROLLOUTS }} # experiment rollouts but for wumpuscentral | |
DISCORD_WEBHOOK_POSTS: ${{ secrets.DISCORD_WEBHOOK_POSTS }} | |
WUMPUSCENTRAL_DISCORD_WEBHOOK_POSTS: ${{ secrets.WUMPUSCENTRAL_DISCORD_WEBHOOK_POSTS }} # posts but for wumpuscentral | |
DISCORD_WEBHOOK_MISCELLANEOUS: ${{ secrets.DISCORD_WEBHOOK_MISCELLANEOUS }} | |
SCRAPE_CLIENT: true | |
SCRAPE_CLIENT_CHANNEL: ${{ matrix.channel }} |