Skip to content

Commit 28ba5e1

Browse files
authored
Update changelog.yml
1 parent c3580a3 commit 28ba5e1

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/changelog.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ on: workflow_dispatch
1010
jobs:
1111
generate:
1212
name: Generate Changelog
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-latest'
14+
outputs:
15+
changelog: ${{steps.getchangelog.outputs.changelog}}
1416
steps:
1517
- name: Checkout
1618
uses: actions/checkout@v2
@@ -46,6 +48,16 @@ jobs:
4648
TO: ${{steps.current.outputs.tag}}
4749
OUTPUT: .github/CHANGELOG.md
4850

51+
- name: Read CHANGELOG file
52+
id: getchangelog
53+
run: echo "::set-output name=changelog::$(cat .github/CHANGELOG.md)"
54+
4955
- name: View Changelog
5056
run: cat .github/CHANGELOG.md
51-
57+
58+
view:
59+
name: View Changelog Output
60+
runs-on: ubuntu-latest
61+
needs: [generate]
62+
steps:
63+
- run: echo ${{jobs.generate.outputs.changelog}}

0 commit comments

Comments
 (0)