-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (45 loc) · 1.33 KB
/
Copy pathrelease-please.yml
File metadata and controls
49 lines (45 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Release Please
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
pull-requests: write
issues: write
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
releases_created: ${{ steps.release.outputs.releases_created }}
paths_released: ${{ steps.release.outputs.paths_released }}
steps:
- name: Run release-please
id: release
uses: googleapis/release-please-action@v4
with:
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
notify-publish:
needs: [release-please]
if: ${{ needs.release-please.outputs.releases_created == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Dispatch package publish workflow
uses: actions/github-script@v7
env:
PATHS_RELEASED: ${{ needs.release-please.outputs.paths_released }}
with:
script: |
const paths = JSON.parse(process.env.PATHS_RELEASED || '[]');
await github.rest.repos.createDispatchEvent({
owner: context.repo.owner,
repo: context.repo.repo,
event_type: 'release-please-published',
client_payload: {
paths_released: paths
}
});