Files
ak-endfield-api-archive/.github/workflows/main.yml
daydreamer-json ead42f3828 Modify paths to include all files in output directories
Updated file paths in GitHub Actions workflow to include all files in specified directories.
2026-03-12 07:40:11 +09:00

59 lines
1.7 KiB
YAML

name: Auto API update check
permissions:
actions: write
checks: write
contents: write
on:
# Scheduled trigger is disabled by default (use cron-job)
# Uncommenting the following two lines will enable it
# schedule:
# - cron: '0 16 * * *'
workflow_dispatch:
repository_dispatch:
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Create config auth
env:
CONFIG_AUTH_YAML_CTX: ${{ secrets.CONFIG_AUTH_YAML }}
run: |
mkdir -p config
echo "$CONFIG_AUTH_YAML_CTX" > config/config_auth.yaml
- name: Run archive script
uses: nick-fields/retry@v3
with:
max_attempts: 5
timeout_minutes: 10
command: bun run src/main.ts archive
- name: Format output folder
run: bun x oxfmt output
- name: Git commit and push
uses: iarekylew00t/verified-bot-commit@v2
with:
message: "[Auto] API update"
files: |
output/akEndfield/**
output/raw/**
output/mirror_file_list.json
if-no-commit: info
- name: Run GitHub mirror upload
run: bun run src/main.ts ghMirrorUpload
continue-on-error: true
- name: Format output folder
run: bun x oxfmt output
- name: Git commit and push
uses: iarekylew00t/verified-bot-commit@v2
with:
message: "[Auto] API update"
files: |
output/mirror_file_list.json
output/mirror_file_list_pending.json
if-no-commit: info