Skip to content

Banner Update

Banner Update #84

name: Banner 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/update_wishevent.ts
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Auto-update banner data"
title: "Auto-update: Banner Data Update"
body: |
This is an automated pull request to update banner data.
Updates made in this pull request:
- Ran the update_wishevent.ts script to fetch and process the latest banner data.
Please review the changes and merge if everything looks correct.
branch: auto-update-banner-data
base: main
delete-branch: true