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:
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
});