Skip to content

Commit

Permalink
fix(cli-ci): fix 1st release error
Browse files Browse the repository at this point in the history
  • Loading branch information
SARDONYX-sard committed Nov 21, 2023
1 parent f987213 commit 1af957c
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/release-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

1 comment on commit 1af957c

@SARDONYX-sard
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.