1 |
name: Release Drafter |
2 |
|
3 |
on: |
4 |
push: |
5 |
branches: [ main ] |
6 |
|
7 |
jobs: |
8 |
draft_release: |
9 |
runs-on: ubuntu-latest |
10 |
steps: |
11 |
- name: Checkout Repo |
12 |
uses: actions/checkout@v3 |
13 |
|
14 |
- name: Conventional Changelog Action |
15 |
id: changelog |
16 |
uses: TriPSs/conventional-changelog-action@v3 |
17 |
with: |
18 |
github-token: ${{ secrets.github_token }} |
19 |
output-file: "false" |
20 |
|
21 |
- name: Create Release |
22 |
uses: actions/create-release@v1 |
23 |
if: ${{ steps.changelog.outputs.skipped == 'false' }} |
24 |
env: |
25 |
GITHUB_TOKEN: ${{ secrets.github_token }} |
26 |
with: |
27 |
tag_name: ${{ steps.changelog.outputs.tag }} |
28 |
release_name: ${{ steps.changelog.outputs.tag }} |
29 |
body: ${{ steps.changelog.outputs.clean_changelog }} |