Skip to content

Commit

Permalink
Add tests for update body
Browse files Browse the repository at this point in the history
  • Loading branch information
owent committed Apr 25, 2024
1 parent 138cac5 commit e959203
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }} (draft)
body: |
Test upload-to-github-release works with `actions/create-release`
Test upload-to-github-release works with `actions/create-release`.
draft: true
prerelease: false
- uses: xresloader/upload-to-github-release@main
Expand All @@ -36,6 +36,8 @@ jobs:
file: "*.md;*.zip;random-name-*.txt"
delete_file: "random-name-*.txt;random-*.txt"
release_id: ${{ steps.create_release.outputs.id }}
update_release_body: ${{ github.ref }}
update_release_body_append: "true"
overwrite: true
verbose: true
prelease:
Expand All @@ -48,6 +50,7 @@ jobs:
zip -r pkg.zip *.md
echo "$(openssl rand -hex 4)" > "random-name-$(openssl rand -hex 4).txt"
echo "$(openssl rand -hex 4)" > "random-name-$(openssl rand -hex 4).txt"
echo 'Test upload-to-github-release works with `actions/create-release` and read body from file.' > release-body.md
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -57,7 +60,7 @@ jobs:
tag_name: ${{ github.ref }}-prelease
release_name: Release ${{ github.ref }} (prelease)
body: |
Test upload-to-github-release works with `actions/create-release`
Test upload-to-github-release works with `actions/create-release`.
draft: false
prerelease: true
- uses: xresloader/upload-to-github-release@main
Expand All @@ -67,5 +70,6 @@ jobs:
file: "*.md;*.zip;random-name-*.txt"
delete_file: "random-name-*.txt;random-*.txt"
release_id: ${{ steps.create_release.outputs.id }}
update_release_body_path: release-body.md
overwrite: true
verbose: true

0 comments on commit e959203

Please sign in to comment.