-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (64 loc) · 2.28 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
60
61
62
63
64
65
66
67
68
69
name: Release Drafter
on:
pull_request:
types:
- closed
branches:
- main
permissions:
contents: read
jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
steps:
# (Optional) GitHub Enterprise requires GHE_HOST variable set
#- name: Set GHE_HOST
# run: |
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
# Drafts your next Release notes as Pull Requests are merged into "master"
- name: Checkout Code
uses: actions/checkout@v4
# - name: Read ChangeLog
# id: changelog
# uses: juliangruber/read-file-action@v1
# with:
# path: ./CHANGELOG.md
# - name: Echo ChangeLog
# run: echo "${{ steps.changelog.outputs.content }}"
- name: Echo pwd
run: pwd
- name: Echo ls
run: ls
- name: Read ChangeLog
id: changelog
uses: BinPar/[email protected]
with:
changelog-path: ./CHANGELOG.md
version: v4.5.10
- name: Echo ChangeLog
run: echo "${{ steps.changelog.outputs.version-changelog }}"
# - uses: release-drafter/release-drafter@v6
# # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# with:
# config-name: release-drafter-config.yml
# name: steps.changelog.inputs.version
# tag: steps.changelog.inputs.version
# # disable-autolabeler: true
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create/update release
uses: ncipollo/release-action@v1
with:
# This pulls from the "Get Changelog Entry" step above, referencing it's ID to get its outputs object.
# See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
tag: v4.5.10
name: v4.5.10
body: ${{ steps.changelog.outputs.version-changelog }}
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }}