use action to read content
Release binary for cl-cli / build-and-release (push) Successful in 1m48s
Details
Release binary for cl-cli / build-and-release (push) Successful in 1m48s
Details
This commit is contained in:
parent
2e914f0a5a
commit
8c82c0fb3c
|
@ -16,17 +16,10 @@ jobs:
|
|||
- name: Build binaries
|
||||
run: cargo build --release
|
||||
- name: Read release content
|
||||
uses: https://github.com/jaywcjlove/github-action-read-file@main
|
||||
id: read_release
|
||||
shell: bash
|
||||
run: |
|
||||
export B=$(cat .changes/${{ github.ref_name }}.md)
|
||||
echo $B
|
||||
echo "RELEASE_BODY=${B}" >> $GITHUB_OUTPUT
|
||||
- name: debug
|
||||
shell: bash
|
||||
env:
|
||||
OUTPUT1: ${{ steps.read_release.outputs.RELEASE_BODY }}
|
||||
run: echo "$OUTPUT1"
|
||||
with:
|
||||
path: .changes/${{ github.ref_name }}.md
|
||||
- name: Setup go for using go gitea actions
|
||||
uses: https://github.com/actions/setup-go@v4
|
||||
with:
|
||||
|
@ -39,4 +32,4 @@ jobs:
|
|||
target/release/cl-cli
|
||||
api_key: '${{secrets.RELEASE_TOKEN}}'
|
||||
body: |
|
||||
${{ steps.read_release.outputs.RELEASE_BODY }}
|
||||
${{ steps.read_release.outputs.content }}
|
||||
|
|
Loading…
Reference in New Issue