Skip to content

Commit 3ecb794

Browse files
committed
chore(ci): add reusable workflows
1 parent ba7af5c commit 3ecb794

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Preview Changelog
2+
3+
run-name: Preview release notes for next release
4+
5+
on:
6+
workflow_dispatch:
7+
8+
jobs:
9+
generate:
10+
name: Generate
11+
uses: CodingWithCalvin/.github/.github/workflows/generate-changelog.yml@main
12+
secrets: inherit
13+
14+
preview:
15+
name: Display Preview
16+
runs-on: ubuntu-latest
17+
needs: generate
18+
19+
steps:
20+
- name: Display changelog preview
21+
run: |
22+
echo "=========================================="
23+
echo "CHANGELOG PREVIEW"
24+
echo "=========================================="
25+
echo ""
26+
echo "${{ needs.generate.outputs.changelog }}"
27+
shell: bash

.github/workflows/publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ permissions:
88
actions: read
99

1010
jobs:
11+
changelog:
12+
name: Generate Changelog
13+
uses: CodingWithCalvin/.github/.github/workflows/generate-changelog.yml@main
14+
secrets: inherit
15+
1116
publish:
17+
needs: changelog
1218
runs-on: windows-latest
1319
outputs:
1420
version: ${{ steps.artifact_manifest.outputs.version }}
@@ -33,7 +39,7 @@ jobs:
3339
uses: ncipollo/[email protected]
3440
with:
3541
artifacts: ./artifact/CodingWithCalvin.CouchbaseExplorer.vsix
36-
generateReleaseNotes: true
42+
body: ${{ needs.changelog.outputs.changelog }}
3743
makeLatest: true
3844
commit: ${{ steps.artifact_manifest.outputs.sha }}
3945
tag: ${{ steps.artifact_manifest.outputs.version }}

0 commit comments

Comments
 (0)