forked from ipdxco/unified-github-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 906 Bytes
/
release.yml
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
name: Release
on:
push:
paths: [CHANGELOG.md]
branches: [main, release/*]
pull_request:
paths: [CHANGELOG.md]
branches: [main, release/*]
jobs:
release:
name: Realase
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- id: release
uses: ipdxco/changelog-driven-release@v1
with:
path: CHANGELOG.md
draft: ${{ github.event_name == 'pull_request' }}
- if: github.event_name == 'pull_request' && steps.release.outputs.tag != ''
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2.9.0
with:
header: release
recreate: true
message: |
## [${{ steps.release.outputs.tag }}](${{ steps.release.outputs.url }})
${{ steps.release.outputs.body }}