Skip to content

Achievement Update

Achievement Update #38

name: Achievement Update
on:
schedule:
# Runs every day at midnight UTC
- cron: "0 0 * * *"
workflow_dispatch: # Allows manual triggering
jobs:
update-banners:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout main branch
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Install missing packages
run: sudo apt-get update && sudo apt-get install -y git curl unzip
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install project dependencies
run: bun install
- name: Run update script
run: bun run ./scripts/workflow/additional_achievement.ts
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Auto-update Achievement data"
title: "Auto-update: Achievement Data Update"
body: |
This is an automated pull request to update Achievement data.
Please review the changes and merge if everything looks correct.
branch: auto-update-achievement-data
base: main
delete-branch: true