Skip to content

Commit

Permalink
feat: Following body example, not body_path
Browse files Browse the repository at this point in the history
  • Loading branch information
gcarreno committed Sep 1, 2023
1 parent 09f7f66 commit fd5ddc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main.lazarus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ jobs:
config: '{
"app-name": "helloworld",
"tag": "${{ github.ref_name }}",
"release-notes": "release-notes.md",
"win": "${{ needs.build.outputs.win-artefact-path }}",
"lin": "${{ needs.build.outputs.lin-artefact-path }}",
"osx": "${{ needs.build.outputs.osx-artefact-path }}"
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/release.lazarus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,12 @@ jobs:
run: |
echo "app-name=${{ fromJSON(inputs.config).app-name }}" >> "$GITHUB_ENV"
echo "tag=${{ fromJSON(inputs.config).tag }}" >> "$GITHUB_ENV"
echo "release-notes=${{ fromJSON(inputs.config).release-notes }}" >> "$GITHUB_ENV"
echo "win=${{ fromJSON(inputs.config).win }}" >> "$GITHUB_ENV"
echo "lin=${{ fromJSON(inputs.config).lin }}" >> "$GITHUB_ENV"
echo "osx=${{ fromJSON(inputs.config).osx }}" >> "$GITHUB_ENV"
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Download the Release binaries
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -64,18 +61,19 @@ jobs:
fi
- name: Generate Release Notes
id: git-cliff
uses: orhun/git-cliff-action@v2
with:
config: cliff.toml
args: --verbose
args: -vv --latest --strip header
env:
OUTPUT: ${{ env.release-notes }}
OUTPUT: CHANGES.md

- name: Create GitHub release
uses: softprops/action-gh-release@v0.1.15
uses: softprops/action-gh-release@v1
with:
name: Lazarus ${{ env.app-name }} ${{ env.tag }}
body_path: ${{ env.release-notes }}
body: ${{ steps.git-cliff.outputs.content }}
files: |
*.tgz
*.zip
Expand Down

0 comments on commit fd5ddc3

Please sign in to comment.