use action to read content
Release binary for cl-cli / build-and-release (push) Successful in 1m48s Details

This commit is contained in:
Julien Fastré 2024-01-08 23:15:56 +01:00
parent 2e914f0a5a
commit 8c82c0fb3c
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
1 changed files with 4 additions and 11 deletions

View File

@ -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 }}