From 5ebab419f571e0df54ea1d62ea5694e4e245e65d Mon Sep 17 00:00:00 2001 From: Maurizio Vitale Date: Wed, 15 Mar 2023 18:07:51 +0100 Subject: [PATCH] attempt with await (#8380) --- .github/workflows/package_dispatch.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/package_dispatch.yml b/.github/workflows/package_dispatch.yml index 89f0bcf73d..ed94db529b 100644 --- a/.github/workflows/package_dispatch.yml +++ b/.github/workflows/package_dispatch.yml @@ -6,6 +6,7 @@ on: jobs: build: runs-on: ubuntu-latest + if: github.event.registry_package.package_type == 'npm' && github.event.registry_package.name == 'adf-core' steps: - name: Dispatch event to monorepo uses: actions/github-script@v6 @@ -13,14 +14,14 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} script: | const payload = { - package_name: ${{ github.event.registry_package.name }}, - package_version: ${{ github.event.registry_package.package_version.name }} + package_name: "${{ github.event.registry_package.name }}", + package_version: "${{ github.event.registry_package.package_version.name }}"" }; - github.repos.createDispatchEvent({ + await github.repos.createDispatchEvent({ owner: context.repo.owner, - repo: 'alfresco-apps', - event_type: 'package-published', + repo: "alfresco-apps", + event_type: "package-published", client_payload: payload });