-
Notifications
You must be signed in to change notification settings - Fork 1.8k
56 lines (49 loc) · 1.33 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
50
51
52
53
54
55
56
name: Temporarily test changelog formatting
on:
pull_request:
jobs:
build:
name: Get changelog
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: master
- name: Install Python tools
uses: BrandonLWhite/[email protected]
- 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 "### Commit: ${{ github.sha }}"
echo "### Changelog:"
echo
poe --quiet changelog
} > changelog.md
- name: Store the changelog
uses: actions/upload-artifact@v4
with:
name: changelog
path: changelog.md
test:
runs-on: ubuntu-latest
permissions:
pull-requests: write
needs: build
steps:
- name: Retrieve the changelog
uses: actions/download-artifact@v4
with:
name: changelog
path: changelog.md
- uses: mshick/add-pr-comment@v2
with:
message-path: changelog.md