Release: Fix changelog formatting #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Temporarily test changelog formatting | |
on: | |
pull_request: | |
jobs: | |
build: | |
name: Get changelog | |
runs-on: ubuntu-latest | |
outputs: | |
changelog: ${{ steps.generate_changelog.outputs.changelog }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Python tools | |
uses: BrandonLWhite/[email protected] | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9" | |
cache: poetry | |
- name: Install dependencies | |
run: poetry install --with=release --extras=docs | |
- name: Install pandoc | |
run: sudo apt update && sudo apt install pandoc -y | |
- name: Obtain the changelog | |
id: generate_changelog | |
run: | | |
{ | |
echo 'changelog<<EOF' | |
poe --quiet changelog | |
echo EOF | |
} >> "$GITHUB_OUTPUT" | |
test: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
needs: build | |
env: | |
CHANGELOG: ${{ needs.build.outputs.changelog }} | |
steps: | |
- uses: mshick/add-pr-comment@v2 | |
with: | |
message: |- | |
### Commit: ${{ github.sha }} | |
### Changelog: | |
${{ env.CHANGELOG }} |