-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1.41 KB
/
release-please.yml
File metadata and controls
47 lines (41 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
45
46
47
# Canonical release-please workflow for hawk-eco repos.
# Opens / updates a release PR on every push to main; on merge of that PR,
# tags the new release. The tag triggers goreleaser (separate workflow).
#
# Source of truth: .shared-templates/release-please.yml.tmpl at the eco root.
name: release-please
on:
push:
branches: [main]
permissions:
contents: write
pull-requests: write
issues: write
concurrency:
group: release-please-${{ github.ref }}
cancel-in-progress: false
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
token: ${{ secrets.RELEASE_PLEASE_TOKEN || secrets.GITHUB_TOKEN }}
- name: Summary
if: always()
env:
RELEASE_CREATED: ${{ steps.release.outputs.release_created }}
TAG_NAME: ${{ steps.release.outputs.tag_name }}
PR_OUTPUT: ${{ steps.release.outputs.pr }}
run: |
if [[ "$RELEASE_CREATED" == "true" ]]; then
echo "Released $TAG_NAME." >> $GITHUB_STEP_SUMMARY
elif [[ -n "$PR_OUTPUT" ]]; then
echo "Updated release PR" >> $GITHUB_STEP_SUMMARY
else
echo "No release-relevant changes detected." >> $GITHUB_STEP_SUMMARY
fi