mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
* Revert "build(deps): bump actions/checkout in /.github/actions/artifact-extract (#9131)" This reverts commit3837d19b58
. * Revert "build(deps): bump actions/github-script from 6.4.1 to 7.0.1 (#9127)" This reverts commite47b1100d1
. * Revert "build(deps): bump actions/checkout from 3.6.0 to 4.1.1 (#9128)" This reverts commitda018aadb9
. * Revert "build(deps): bump Alfresco/alfresco-build-tools (#9139)" This reverts commitf2764d0638
. * Revert "build(deps): bump Alfresco/alfresco-build-tools from 1.36.0 to 5.4.0 (#9138)" This reverts commit76eca49985
. * Revert "build(deps): bump actions/setup-node from 3.8.2 to 4.0.0 (#9149)" This reverts commit167a5be810
.
30 lines
990 B
YAML
30 lines
990 B
YAML
name: Package published
|
|
on:
|
|
registry_package:
|
|
types: [published]
|
|
|
|
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@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
|
|
with:
|
|
github-token: ${{ secrets.PAT_WRITE_PKG }}
|
|
retries: 3
|
|
script: |
|
|
const payload = {
|
|
package_name: "${{ github.event.registry_package.name }}",
|
|
package_version: "${{ github.event.registry_package.package_version.name }}"
|
|
};
|
|
|
|
await github.rest.repos.createDispatchEvent({
|
|
owner: context.repo.owner,
|
|
repo: "alfresco-apps",
|
|
event_type: "package-published",
|
|
client_payload: payload
|
|
});
|
|
|
|
console.log(`Trigger a dispatch event for the monorepo`);
|