mirror of
https://github.com/andrei0x309/clear-wallet.git
synced 2024-11-03 23:21:24 +00:00
37 lines
841 B
YAML
37 lines
841 B
YAML
name: Bun Main Workflow
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: 'Version'
|
|
required: true
|
|
|
|
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
|
|
with:
|
|
version: '1.1.18'
|
|
|
|
- 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
|