forked from meshery/meshery
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (53 loc) · 1.94 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Release Drafter
on:
push:
branches:
- '!*'
tags:
- 'v*'
jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- name: Drafting release
id: release_drafter
uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout release notes
uses: actions/checkout@v2
- name: Write release notes to markdown file
id: md_writer
run: |
printf '%b\n' "---\nlayout: release\ndate: $(date +'%Y-%m-%d')\ntag: ${{ steps.release_drafter.outputs.tag_name }}\n---\n\n${{ steps.release_drafter.outputs.body }} " > ./docs/_releases/${{ steps.release_drafter.outputs.tag_name }}.md
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.RELEASE_NOTES_PAT }}
commit-message: "Created release note file ${{ steps.release_drafter.outputs.tag_name }}.md"
committer: l5io <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: true
branch: docs/automated-release-notes
delete-branch: true
base: master
title: '[Docs] Release Notes for Meshery ${{ steps.release_drafter.outputs.tag_name }}'
body: |
An auto-generated pull request to document release notes for Meshery ${{ steps.release_drafter.outputs.tag_name }}
labels: |
area/ci
kind/chore
# assignees:
# reviewers:
team-reviewers: |
release-team
maintainers
# milestone: 1
draft: false
- name: Verify PR
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"