Skip to content

Commit

Permalink
feat: use the local supersetbot (apache#27615)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored and EnxDev committed Apr 12, 2024
1 parent 16520c0 commit b5cdb7f
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 6 deletions.
11 changes: 11 additions & 0 deletions .github/actions/setup-supersetbot/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 'Setup supersetbot'
description: 'Sets up supersetbot npm lib from the repo'
runs:
using: 'composite'
steps:
- name: Install dependencies
shell: bash
run: |
cd .github/supersetbot
npm install
npm link
8 changes: 7 additions & 1 deletion .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm install -g supersetbot

- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v4

- name: Setup supersetbot
uses: ./.github/actions/setup-supersetbot/

- name: Execute custom Node.js script
env:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20'
- name: install supersetbot
run: |
npm install -g supersetbot

- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup supersetbot
uses: ./.github/actions/setup-supersetbot/

- name: Build Docker Image
shell: bash
run: |
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/issue_creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm install -g supersetbot

- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v4

- name: Setup supersetbot
uses: ./.github/actions/setup-supersetbot/

- name: Execute custom Node.js script
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/supersetbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm install supersetbot

- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v4

- name: Setup supersetbot
uses: ./.github/actions/setup-supersetbot/

- name: Execute custom Node.js script
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit b5cdb7f

Please sign in to comment.