-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 821 Bytes
/
release.yaml
File metadata and controls
37 lines (29 loc) · 821 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
run-name: Process Release on ${{ github.event.workflow_run.head_branch }} `${{ github.event.workflow_run.head_sha }}`
on:
workflow_run:
workflows: ["Go"]
branches: [main]
types:
- completed
concurrency:
group: release-please-${{ github.ref }}
jobs:
release-please:
name: Release Please
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v6
- uses: googleapis/release-please-action@v4
fail-release:
name: Fail Release
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'failure'
steps:
- run: |
echo "::error ::Cannot release unless 'Go' workflow suceeds!"
exit 1