This is an automated email from the ASF dual-hosted git repository. maximebeauchemin pushed a commit to branch local_supersetbot in repository https://gitbox.apache.org/repos/asf/superset.git
commit b9302353fe33345a1ec1c63f25d1ab5cdc88561a Author: Maxime Beauchemin <[email protected]> AuthorDate: Thu Mar 21 18:01:09 2024 -0700 feat: use the local supersetbot --- .github/actions/setup-supersetbot/action.yml | 11 +++++++++++ .github/workflows/docker-release.yml | 5 ++++- .github/workflows/docker.yml | 6 +++--- .github/workflows/issue_creation.yml | 5 ++++- .github/workflows/supersetbot.yml | 5 ++++- 5 files changed, 26 insertions(+), 6 deletions(-) diff --git a/.github/actions/setup-supersetbot/action.yml b/.github/actions/setup-supersetbot/action.yml new file mode 100644 index 0000000000..ba5d43fbeb --- /dev/null +++ b/.github/actions/setup-supersetbot/action.yml @@ -0,0 +1,11 @@ +name: 'Setup supersetbot' +description: 'Sets up supersetbot npm lib from the repo' +runs: + using: 'composite' + steps: + - name: Install dependencies + run: | + cd .github/supersetbot + npm install + npm link + shell: bash diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index 3d51c75f8f..50de7a838a 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -55,7 +55,10 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20' - - run: npm install -g supersetbot + + - name: Setup supersetbot + uses: ./.github/actions/setup-supersetbot/ + - name: Execute custom Node.js script env: DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }} diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 93259061ec..f910a1d23d 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -56,9 +56,9 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20' - - name: install supersetbot - run: | - npm install -g supersetbot + + - name: Setup supersetbot + uses: ./.github/actions/setup-supersetbot/ - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" uses: actions/checkout@v4 diff --git a/.github/workflows/issue_creation.yml b/.github/workflows/issue_creation.yml index 930b1cf7a7..1b5ebf96b4 100644 --- a/.github/workflows/issue_creation.yml +++ b/.github/workflows/issue_creation.yml @@ -15,7 +15,10 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20' - - run: npm install -g supersetbot + + - name: Setup supersetbot + uses: ./.github/actions/setup-supersetbot/ + - name: Execute custom Node.js script env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/supersetbot.yml b/.github/workflows/supersetbot.yml index 327e5be586..337ed05548 100644 --- a/.github/workflows/supersetbot.yml +++ b/.github/workflows/supersetbot.yml @@ -35,7 +35,10 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20' - - run: npm install supersetbot + + - name: Setup supersetbot + uses: ./.github/actions/setup-supersetbot/ + - name: Execute custom Node.js script env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
