Skip to content

Commit

Permalink
feat: move supersetbot out of repo (#27647)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Apr 3, 2024
1 parent 9022f5c commit 8e3cecd
Show file tree
Hide file tree
Showing 23 changed files with 50 additions and 12,539 deletions.
35 changes: 30 additions & 5 deletions .github/actions/setup-supersetbot/action.yml
Original file line number Diff line number Diff line change
@@ -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
22 changes: 0 additions & 22 deletions .github/supersetbot/.eslintrc.json

This file was deleted.

37 changes: 0 additions & 37 deletions .github/supersetbot/README.md

This file was deleted.

8 changes: 0 additions & 8 deletions .github/supersetbot/jest.config.js

This file was deleted.

Loading

0 comments on commit 8e3cecd

Please sign in to comment.