Skip to content

Every 2 Hours Mining (routes) #1587

Every 2 Hours Mining (routes)

Every 2 Hours Mining (routes) #1587

Workflow file for this run

name: Every 2 Hours Mining (routes)
on:
schedule:
- cron: "0 */2 * * *"
workflow_dispatch:
permissions:
contents: write
jobs:
mine:
runs-on: ubuntu-latest
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_ROUTES: ${{ secrets.DISCORD_WEBHOOK_ROUTES }}
SCRAPE_CLIENT_ROUTES: true