2024-07-10 08:36:50 +00:00
|
|
|
name: Bun Main Workflow
|
2024-07-09 14:02:25 +00:00
|
|
|
|
|
|
|
on:
|
2024-07-10 08:36:50 +00:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
version:
|
|
|
|
description: 'Version'
|
2024-07-26 22:21:03 +00:00
|
|
|
type: string
|
2024-07-10 08:36:50 +00:00
|
|
|
required: true
|
2024-07-26 22:21:03 +00:00
|
|
|
fconly:
|
|
|
|
description: 'FC Only'
|
|
|
|
type: boolean
|
|
|
|
required: true
|
|
|
|
default: false
|
2024-07-10 08:36:50 +00:00
|
|
|
|
2024-07-09 14:02:25 +00:00
|
|
|
jobs:
|
|
|
|
run-bun-script:
|
|
|
|
runs-on: ubuntu-latest
|
2024-07-10 08:36:50 +00:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: CI
|
2024-07-09 14:02:25 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup Bun
|
|
|
|
uses: oven-sh/setup-bun@v2
|
|
|
|
|
2024-07-10 08:36:50 +00:00
|
|
|
- name: Install Dependencies
|
|
|
|
run: bun install
|
|
|
|
|
|
|
|
- name: Run Bun Script - Update
|
2024-07-09 14:02:25 +00:00
|
|
|
if: github.event_name == 'workflow_dispatch'
|
2024-07-10 08:36:50 +00:00
|
|
|
run: bun run index.ts '${{ toJSON(secrets) }}' '${{ toJSON(github.event) }}' update
|
2024-07-09 14:02:25 +00:00
|
|
|
|
2024-07-10 08:36:50 +00:00
|
|
|
- name: Run Bun Script - Push
|
|
|
|
if: github.event_name == 'push'
|
|
|
|
run: bun run index.ts '${{ toJSON(secrets) }}' '${{ toJSON(github.event) }}' push
|