From 1af957c05ac10458cb6741e08fe8f524a53ac5d8 Mon Sep 17 00:00:00 2001 From: SARDONYX-sard <68905624+SARDONYX-sard@users.noreply.github.com> Date: Wed, 22 Nov 2023 05:17:54 +0900 Subject: [PATCH] fix(cli-ci): fix 1st release error --- .github/workflows/release-cli.yaml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-cli.yaml b/.github/workflows/release-cli.yaml index 09d28bc..9975f21 100644 --- a/.github/workflows/release-cli.yaml +++ b/.github/workflows/release-cli.yaml @@ -182,17 +182,22 @@ jobs: - uses: actions/checkout@v4 with: submodules: recursive + - name: 'Download artifacts' + uses: actions/download-artifact@v3 + with: + name: artifacts + path: artifacts + - name: Update CHANGELOG id: changelog uses: requarks/changelog-action@v1 with: token: ${{ github.token }} tag: ${{ needs.plan.outputs.tag }} - - name: 'Download artifacts' - uses: actions/download-artifact@v3 - with: - name: artifacts - path: artifacts + # If you want to set first version to 1.0.0, you need to change it! + # Because creating a Change log requires a minimum of two tags. + if: needs.plan.outputs.tag != '0.1.0' + continue-on-error: true - name: Create Release uses: ncipollo/release-action@v1 with: @@ -210,3 +215,7 @@ jobs: branch: main commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]' file_pattern: CHANGELOG.md + # If you want to set first version to 1.0.0, you need to change it! + # Because creating a Change log requires a minimum of two tags. + if: needs.plan.outputs.tag != '0.1.0' + continue-on-error: true