From e8ff66387cdc46aed5895425675dcb26d948c8d3 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Fri, 12 Jan 2024 06:16:24 -0500 Subject: [PATCH] NPM should use Docsy repo + branch from PR --- .github/workflows/smoke.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/smoke.yaml b/.github/workflows/smoke.yaml index eee64c1349..51bea820d8 100644 --- a/.github/workflows/smoke.yaml +++ b/.github/workflows/smoke.yaml @@ -1,8 +1,6 @@ name: smoke on: - push: - branches: [ main ] pull_request: jobs: @@ -21,7 +19,11 @@ jobs: - run: tools/install-hugo.sh shell: bash - name: Make site + env: + BASE_REPO: ${{ github.repository }} + BRANCH: ${{ github.head_ref }} + REPO: ${{ github.event.pull_request.head.repo.full_name }} run: | - mkdir tmp && cd tmp - ../tools/make-site.sh + mkdir tmp && cd tmp && set -x + ../tools/make-site.sh -p $REPO -v $BRANCH shell: bash