feat: move supersetbot out of repo (#27647)

This commit is contained in:
Maxime Beauchemin
2024-04-02 20:28:00 -07:00
committed by GitHub
parent 9022f5c519
commit 8e3cecda9f
23 changed files with 50 additions and 12539 deletions

View File

@@ -1,11 +1,36 @@
name: 'Setup supersetbot'
description: 'Sets up supersetbot npm lib from the repo'
description: 'Sets up supersetbot npm lib from the repo or npm'
inputs:
from-npm:
description: 'Install from npm instead of local setup'
required: false
default: 'true' # Defaults to using the local setup
runs:
using: 'composite'
steps:
- name: Install dependencies
- name: Setup Node Env
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install supersetbot from npm
if: ${{ inputs.from-npm == 'true' }}
shell: bash
run: npm install -g supersetbot
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
if: ${{ inputs.from-npm == 'false' }}
uses: actions/checkout@v4
with:
repository: apache-superset/supersetbot
path: supersetbot
- name: Setup supersetbot from repo
if: ${{ inputs.from-npm == 'false' }}
shell: bash
working-directory: supersetbot
run: |
cd .github/supersetbot
npm install
npm link
# simple trick to install globally with dependencies
npm pack
npm install -g ./supersetbot*.tgz