Skip to content

Commit

Permalink
Merge pull request #695 from RayWangQvQ/develop
Browse files Browse the repository at this point in the history
fix scripts error
  • Loading branch information
RayWangQvQ authored Apr 29, 2024
2 parents 2f6a4c5 + 32d724d commit 5d9b246
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ jobs:
TargetVersion=""
if [ "${{ github.event.release.tag_name }}" ] ; then
TargetVersion=${{ github.event.release.tag_name }}
fi
then
else
TargetVersion=$(echo "$GITHUB_REF" | sed 's/refs\/tags\///')
fi
echo "TargetVersion: $TargetVersion"
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,17 @@ jobs:
- name: Extract Release Notes
id: release_notes
run: |
content=$(grep -m1 "##" -A 1000 ./CHANGELOG.md)
echo "::set-output name=content::$content"
content=$(grep -m1 "##" -A 1000 ./CHANGELOG.md)
version=$(echo "$GITHUB_REF" | sed 's/refs\/tags\///')
echo "::set-output name=content::$content"
echo "::set-output name=version::$version"
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: './src/Ray.BiliBiliTool.Console/bin/Publish/*.zip'
token: ${{ secrets.GITHUB_TOKEN }}
name: "BiliBiliToolPro-V${{ github.event.inputs.version }}"
name: "BiliBiliToolPro-V${{ steps.release_notes.outputs.version }}"
tag_name: ${{ github.event.inputs.version }}
body: ${{ steps.release_notes.outputs.content }}
discussion_category_name: Announcements
Expand Down

0 comments on commit 5d9b246

Please sign in to comment.