-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.07 KB
/
production.yml
File metadata and controls
39 lines (35 loc) · 1.07 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
name: Run production changelogs
run-name: Run Production changelogs
on:
push:
branches:
- 'production'
- 'releases/**'
permissions: write-all
jobs:
conventional-commits:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Conventional Changelog Action
id: changelog
uses: TriPSs/conventional-changelog-action@v3
with:
github-token: ${{ secrets.github_token }}
skip-git-pull: "true"
version-file: "version.json"
version-path: "version"
skip-on-empty: "false"
- name: Create Release
uses: softprops/action-gh-release@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
name: ${{ steps.changelog.outputs.tag }}
discussion_category_name: 'Release'
body: ${{ steps.changelog.outputs.clean_changelog }}