-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.41 KB
/
release-please.yml
File metadata and controls
44 lines (38 loc) · 1.41 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
name: Release Please
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
actions: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
target-branch: main
config-file: .github/release-please-config.json
manifest-file: .github/release-please-manifest.json
- name: Trigger deployment workflows
if: ${{ steps.release.outputs.release_created }}
uses: actions/github-script@v7
with:
script: |
const repo = context.repo.repo;
const owner = context.repo.owner;
async function triggerWorkflow(workflow_id) {
console.log(`Triggering workflow: ${workflow_id}`);
await github.rest.actions.createWorkflowDispatch({
owner: owner,
repo: repo,
workflow_id: workflow_id,
ref: 'main'
});
console.log(`Successfully triggered ${workflow_id}`);
}
await triggerWorkflow('publish.yml');