mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
attempt with await (#8380)
This commit is contained in:
11
.github/workflows/package_dispatch.yml
vendored
11
.github/workflows/package_dispatch.yml
vendored
@@ -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
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user