-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 950 Bytes
/
release-please.yml
File metadata and controls
37 lines (33 loc) · 950 Bytes
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
name: Release Please
on:
push:
branches: [main]
workflow_dispatch:
permissions:
actions: write
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
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
- name: Dispatch image release workflow
if: steps.release.outputs.release_created == 'true'
uses: actions/github-script@v9
with:
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: "release.yml",
ref: "main",
inputs: {
release_tag: "${{ steps.release.outputs.tag_name }}"
}
})