🐛 fix: reflect: call of reflect.Value.IsNil on array Value. see #280 #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tag-release | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
release: | |
name: Release new version | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
fail-fast: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set tag ENV | |
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable | |
run: | | |
echo "RELEASE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV | |
echo "RELEASE_NAME=$GITHUB_WORKFLOW" >> $GITHUB_ENV | |
- name: Generate changelog | |
run: | | |
curl https://github.com/gookit/gitw/releases/latest/download/chlog-linux-amd64 -L -o /usr/local/bin/chlog | |
chmod a+x /usr/local/bin/chlog | |
chlog -config .github/changelog.yml -output changelog.md prev last | |
# https://github.com/softprops/action-gh-release | |
- name: Create release and upload assets | |
uses: softprops/action-gh-release@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
name: ${{ env.RELEASE_TAG }} | |
tag_name: ${{ env.RELEASE_TAG }} | |
body_path: changelog.md | |
token: ${{ secrets.GITHUB_TOKEN }} | |
# files: macos-chlog.exe |