Merge pull request #11 from andrei0x309/dev/6 #48
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: Bun Main Workflow | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version' | |
type: string | |
required: true | |
fconly: | |
description: 'FC Only' | |
type: boolean | |
required: true | |
default: false | |
jobs: | |
run-bun-script: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: CI | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Bun | |
uses: oven-sh/setup-bun@v2 | |
- name: Install Dependencies | |
run: bun install | |
- name: Run Bun Script - Update | |
if: github.event_name == 'workflow_dispatch' | |
run: bun run index.ts '${{ toJSON(secrets) }}' '${{ toJSON(github.event) }}' update | |
- name: Run Bun Script - Push | |
if: github.event_name == 'push' | |
run: bun run index.ts '${{ toJSON(secrets) }}' '${{ toJSON(github.event) }}' push |