From fa9d13998447f0a1f508caf17603d0b81e906297 Mon Sep 17 00:00:00 2001 From: Ryan Cartwright Date: Wed, 13 Mar 2024 15:07:07 +1100 Subject: [PATCH 1/2] add automatic changelog generation --- .github/workflows/publish.yaml | 7 +++++++ CHANGELOG.md | 3 --- 2 files changed, 7 insertions(+), 3 deletions(-) delete mode 100644 CHANGELOG.md diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 7b54632..70571f7 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -17,6 +17,13 @@ jobs: - name: Add version run: | echo -e "\n\nversion: ${GITHUB_REF_NAME##v}" >> pubspec.yaml + - name: Update CHANGELOG + uses: requarks/changelog-action@v1 + with: + token: ${{ secrets.NITRIC_BOT_TOKEN }} + fromTag: ${{ github.ref_name }} + toTag: v1.0.0 + writeToFile: true - name: Check Publish Warnings run: dart pub publish --dry-run - name: Publish diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index effe43c..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,3 +0,0 @@ -## 1.0.0 - -- Initial version. From 15786ba228deeab424b17b89a53d79f0469fcc75 Mon Sep 17 00:00:00 2001 From: Ryan Cartwright Date: Wed, 13 Mar 2024 15:15:40 +1100 Subject: [PATCH 2/2] add fetch depth --- .github/workflows/publish.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 70571f7..9caa138 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -11,6 +11,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 - uses: dart-lang/setup-dart@v1 - name: Install dependencies run: dart pub get