Skip to content

Commit dce22a6

Browse files
ci: add automatic changelog generation (#22)
* add automatic changelog generation * add fetch depth
1 parent 0ae1db1 commit dce22a6

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/publish.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,21 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
1416
- uses: dart-lang/setup-dart@v1
1517
- name: Install dependencies
1618
run: dart pub get
1719
- name: Add version
1820
run: |
1921
echo -e "\n\nversion: ${GITHUB_REF_NAME##v}" >> pubspec.yaml
22+
- name: Update CHANGELOG
23+
uses: requarks/changelog-action@v1
24+
with:
25+
token: ${{ secrets.NITRIC_BOT_TOKEN }}
26+
fromTag: ${{ github.ref_name }}
27+
toTag: v1.0.0
28+
writeToFile: true
2029
- name: Check Publish Warnings
2130
run: dart pub publish --dry-run
2231
- name: Publish

CHANGELOG.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)