-
Notifications
You must be signed in to change notification settings - Fork 5
56 lines (49 loc) · 1.73 KB
/
changelog.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Changelog generator
# Trigger the workflow on milestone events
on:
milestone:
types: [closed]
workflow_dispatch:
inputs:
milestoneId:
description: "Milestone ID"
required: true
default: "1"
releaseVersion:
description: "Release version"
required: true
default: "1.0.0"
jobs:
release-notes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.NOVUM_PRIVATE_REPOS }}
- name: Get branch name
uses: rlespinasse/[email protected]
- name: Create Release Notes
uses: docker://decathlon/release-notes-generator-action:3.1.5
env:
GITHUB_TOKEN: ${{ secrets.NOVUM_PRIVATE_REPOS }}
OUTPUT_FOLDER: changelog-versions
USE_MILESTONE_TITLE: "true"
FILENAME_PREFIX: ${{ github.event.inputs.releaseVersion }}
# - run: sudo python3 .github/resources/changelog-index-generator.py changelog-versions
- name: Commit & Push in ${{ env.GITHUB_REF_SLUG_URL }}
run: |
git add .
git config user.name "github-actions"
git config user.email "github-actions[bot]@users.noreply.github.com"
git commit -am "update changelog"
git push origin ${{ env.GITHUB_REF_SLUG_URL }}
# - name: Upload Release Notes to Wiki
# uses: docker://decathlon/wiki-page-creator-action:latest
# env:
# ACTION_MAIL: [email protected]
# ACTION_NAME: místicaBot
# GH_PAT: ${{ secrets.NOVUM_PRIVATE_REPOS_READONLY }}
# MD_FOLDER: changelog-versions
# OWNER: Telefonica
# REPO_NAME: mistica-design
# SKIP_MD: README.md