From d46f81ca34df539da28152c314e00143ecb1b813 Mon Sep 17 00:00:00 2001 From: "Michael B. Klein" Date: Wed, 8 May 2024 15:13:59 +0000 Subject: [PATCH] Fix dc-api-types production PR workflow --- .github/workflows/production-types.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/production-types.yml b/.github/workflows/production-types.yml index 7094dbc3..4825260a 100644 --- a/.github/workflows/production-types.yml +++ b/.github/workflows/production-types.yml @@ -11,7 +11,7 @@ on: workflow_dispatch: jobs: Push-To-Types-Repo-Production: - if: github.event.pull_request.merged == true + if: (github.event_name == 'pull_request' && github.event.pull_request.merged == true) || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest permissions: id-token: write @@ -44,7 +44,7 @@ jobs: id: package-version uses: martinbeentjes/npm-get-version-action@main with: - path: "${{ env.TMP_SRCDIR }}" + path: "${{ env.TMP_SRCDIR }}/node" - name: Generate Typescript file working-directory: "${{ env.TMP_SRCDIR }}/node" run: |