Skip to content

Commit

Permalink
feat: move supersetbot out of repo and make it dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Apr 2, 2024
1 parent 3a34c7f commit 9599ea3
Show file tree
Hide file tree
Showing 31 changed files with 342 additions and 12,743 deletions.
38 changes: 33 additions & 5 deletions .github/actions/setup-supersetbot/action.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,39 @@
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: 'false' # 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 != 'true' }}
repository: apache-superset/supersetbot
uses: actions/checkout@v4
path: supersetbot

- name: Setup supersetbot from repo
if: ${{ inputs.from-npm != 'true' }}
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
- name: supersetbot version
shell: bash
run: supersetbot version
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 9599ea3

Please sign in to comment.