-
Notifications
You must be signed in to change notification settings - Fork 1.8k
49 lines (43 loc) · 1.17 KB
/
test-changelog.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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 }}