Skip to content

Midnight Mining (applications) #138

Midnight Mining (applications)

Midnight Mining (applications) #138

Workflow file for this run

name: Midnight Mining (applications)
on:
schedule:
- cron: "0 0 * * *"
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_USER_TOKEN: ${{ secrets.DISCORD_USER_TOKEN }}
DISCORD_WEBHOOK_BUILDS: ${{ secrets.DISCORD_WEBHOOK_BUILDS }}
WUMPUSCENTRAL_DISCORD_WEBHOOK_BUILDS: ${{ secrets.WUMPUSCENTRAL_DISCORD_WEBHOOK_BUILDS }} # builds but for wumpuscentral
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
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_APPLICATIONS: true