softprops / action-gh-release

📦 :octocat: GitHub Action for creating GitHub Releases
MIT License
4.21k stars 460 forks source link

Append Body feature not working(or i dont know how) #527

Open CraftyRyte opened 1 month ago

CraftyRyte commented 1 month ago

Hi. i was trying to use append body feature to append a certain text to my body file. it doesnt work. heres my code:

name: Bump version

on:
  push:
    branches:
      - main

jobs:
  bump-version:
    if: "!startsWith(github.event.head_commit.message, 'bump:')"
    runs-on: ubuntu-latest
    name: "Bump version and create changelog with commitizen"
    steps:
      - name: Check out
        uses: actions/checkout@v3
        with:
          token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
          fetch-depth: 0
      - name: Create bump and changelog
        uses: commitizen-tools/commitizen-action@master
        with:
            github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
            changelog_increment_filename: body.md
      - name: Release
        uses: softprops/action-gh-release@master
        with:
          append_body: true
          body_path: "body.md"
          body: |
            ## Install the library! 
            PyPi page: https://pypi.org/project/pygess-py/
            Install using: `pip install pygess-py` (on Windows) `pip3 install pygess-py` (on Mac)"
          tag_name: ${{ env.REVISION }}
          name: "Release ${{ env.REVISION }}"
          generate_release_notes: true
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

i want to append :" ## Install the library! PyPi page: https://pypi.org/project/pygess-py/ Install using: pip install pygess-py (on Windows) pip3 install pygess-py (on Mac)" to body