mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +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:
|
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
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user