forked from DynamoDS/Dynamo
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.06 KB
/
generate_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
name: Generate Changelog
on:
workflow_dispatch:
inputs:
head-ref:
description: Head version
default: v1.0.0
required: true
base-ref:
description: Base Version
default: v1.0.0
required: true
jobs:
generate_changelog:
name: Generate Changelog
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate changelog
id: generate_changelog
uses: metcalfc/changelog-generator@d552ecf3366cf9d6da9fd7dbe425325d3d095aa8 # v4.3.1
with:
myToken: ${{ secrets.GITHUB_TOKEN }}
head-ref: ${{ github.event.inputs.head-ref }}
base-ref: ${{ github.event.inputs.base-ref }}
- name: Summary
run: |
cat <<EOF >> $GITHUB_STEP_SUMMARY
# Changelog
[Compare changes](${{ format('{0}/{1}/compare/{2}...{3}', github.server_url, github.repository, github.event.inputs.base-ref, github.event.inputs.head-ref) }})
${{ steps.generate_changelog.outputs.changelog }}
EOF