-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.02 KB
/
Copy pathgenerate-release-notes.yml
File metadata and controls
39 lines (34 loc) · 1.02 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
# Trigger the workflow on milestone events
on:
milestone:
types: [closed]
workflow_dispatch:
inputs:
milestoneId:
description: 'Milestone ID'
required: true
default: '1'
name: Milestone Closure
jobs:
create-release-notes:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@master
- name: Create Release Notes
uses: docker://decathlon/release-notes-generator-action:2.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
USE_MILESTONE_TITLE: "true"
OUTPUT_FOLDER: "release-notes"
- name: Debug - list files
run: ls -la
- name: Commit release notes
run: |
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
git add release-notes/Rel_*.md || echo "No release notes to add"
git commit -m "Add release notes for closed milestone"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}