-
-
Notifications
You must be signed in to change notification settings - Fork 41
78 lines (70 loc) · 2.2 KB
/
release-please.yml
File metadata and controls
78 lines (70 loc) · 2.2 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: "AEGS: Release Please"
on:
push:
branches:
- master
- main
permissions:
contents: write
pull-requests: write
actions: write
jobs:
release-please:
name: "AEGS: Release Please"
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- name: Release Please
id: release
uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: .github/release-please-config.json
manifest-file: .github/.release-please-manifest.json
trigger-release-workflows:
name: "AEGS: Trigger Release Workflows"
needs: release-please
if: needs.release-please.outputs.release_created == 'true'
runs-on: ubuntu-latest
steps:
- name: Trigger GitHub Release (binaries)
uses: actions/github-script@v8
with:
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'release.yml',
ref: 'master',
inputs: {
tag_name: '${{ needs.release-please.outputs.tag_name }}'
}
});
- name: Trigger NuGet Release
uses: actions/github-script@v8
with:
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'nuget-release.yml',
ref: 'master',
inputs: {
tag_name: '${{ needs.release-please.outputs.tag_name }}'
}
});
- name: Trigger Docker Release
uses: actions/github-script@v8
with:
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'docker-release.yml',
ref: 'master',
inputs: {
tag_name: '${{ needs.release-please.outputs.tag_name }}'
}
});