mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 12:32:33 +01:00
Add test for changelog formatting
This commit is contained in:
parent
faf7529aa9
commit
ef4e98389c
1 changed files with 51 additions and 0 deletions
51
.github/workflows/test-changelog.yaml
vendored
Normal file
51
.github/workflows/test-changelog.yaml
vendored
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
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
|
||||
with:
|
||||
ref: master
|
||||
|
||||
- name: Install Python tools
|
||||
uses: BrandonLWhite/pipx-install-action@v0.1.1
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ env.PYTHON_VERSION }}
|
||||
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 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 }}
|
||||
Loading…
Reference in a new issue