attempt with await (#8380)

This commit is contained in:
Maurizio Vitale
2023-03-15 18:07:51 +01:00
committed by GitHub
parent 803e1f7f5b
commit 5ebab419f5

View File

@@ -6,6 +6,7 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event.registry_package.package_type == 'npm' && github.event.registry_package.name == 'adf-core'
steps: steps:
- name: Dispatch event to monorepo - name: Dispatch event to monorepo
uses: actions/github-script@v6 uses: actions/github-script@v6
@@ -13,14 +14,14 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
script: | script: |
const payload = { const payload = {
package_name: ${{ github.event.registry_package.name }}, package_name: "${{ github.event.registry_package.name }}",
package_version: ${{ github.event.registry_package.package_version.name }} package_version: "${{ github.event.registry_package.package_version.name }}""
}; };
github.repos.createDispatchEvent({ await github.repos.createDispatchEvent({
owner: context.repo.owner, owner: context.repo.owner,
repo: 'alfresco-apps', repo: "alfresco-apps",
event_type: 'package-published', event_type: "package-published",
client_payload: payload client_payload: payload
}); });