Every 12 Hours Mining (domains) #190
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 12 Hours Mining (domains) | |
on: | |
schedule: | |
- cron: "0 */12 * * *" | |
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 }} | |
SCRAPE_GITHUB: true |