Skip to content

Commit 4a1996e

Browse files
authored
Clean up, maybe fix previous tag finding
1 parent 23a7593 commit 4a1996e

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

.github/workflows/changelog.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,37 @@ jobs:
1111
generate:
1212
name: Generate Changelog
1313
runs-on: ubuntu-latest
14-
outputs:
15-
changelog: ${{steps.getchangelog.outputs.changelog}}
1614
steps:
1715
- name: Checkout
1816
uses: actions/checkout@v2
1917

2018
- name: Unshallow
2119
run: git fetch --prune --unshallow
2220

23-
- name: Find Last Tag
24-
id: last
21+
# - name: Find Last Tag
22+
# id: last
23+
# uses: jimschubert/query-tag-action@v1
24+
# with:
25+
# include: 'v*'
26+
# exclude: '*-rc*'
27+
# commit-ish: 'HEAD~'
28+
# skip-unshallow: 'true'
29+
- name: Find Current Tag
30+
id: current
2531
uses: jimschubert/query-tag-action@v1
2632
with:
2733
include: 'v*'
2834
exclude: '*-rc*'
29-
commit-ish: 'HEAD~'
35+
commit-ish: '@'
3036
skip-unshallow: 'true'
3137

32-
- name: Find Current Tag
33-
id: current
38+
- name: Previous Tag
39+
id: last
3440
uses: jimschubert/query-tag-action@v1
3541
with:
3642
include: 'v*'
37-
exclude: '*-rc*'
38-
commit-ish: '@'
43+
exclude: ${{steps.current.outputs.tag}}
3944
skip-unshallow: 'true'
40-
4145

4246
- name: Generate changelog
4347
uses: jimschubert/beast-changelog-action@v1
@@ -60,4 +64,6 @@ jobs:
6064
runs-on: ubuntu-latest
6165
needs: [generate]
6266
steps:
63-
- run: echo ${{needs.generate.outputs.changelog}}
67+
- run: cat .github/CHANGELOG.md
68+
69+
# {needs.generate.outputs.changelog}}

0 commit comments

Comments
 (0)