generated from actions/javascript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 898 Bytes
/
release-drafter.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
32
33
34
35
36
37
38
39
name: Release drafter
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
pull-requests: read
jobs:
draft_release:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: release-drafter/release-drafter@v6
id: release-drafter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish_release:
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch'
outputs:
tag_name: ${{ steps.release-drafter.outputs.tag_name }}
steps:
- uses: release-drafter/release-drafter@v6
id: release-drafter
with:
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
update_semver:
needs: publish_release
uses: ./.github/workflows/update_semver.yml
with:
tag: ${{ needs.publish_release.outputs.tag_name }}