Skip to content

Commit 3d36e81

Browse files
committed
fix(ci): make changelog workflow actually use poetry
1 parent eca3b67 commit 3d36e81

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/changelog.yml

+6-9
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,17 @@ jobs:
2727
# towncrier needs a non-shallow clone
2828
fetch-depth: '0'
2929

30-
- name: Set up environment
31-
uses: ./.github/actions/setup-env
30+
- name: Bootstrap disnake-compass
31+
uses: ./.github/actions/bootstrap
3232
with:
33-
python-version: '3.9'
33+
python-version: '3.10'
3434

35-
- name: Install dependencies
36-
run: pdm install -dG changelog
37-
38-
- name: Check for presence of a Change Log fragment (only pull requests)
35+
- name: Check for presence of a changelog fragment (only pull requests)
3936
# NOTE: The pull request' base branch needs to be fetched so towncrier
4037
# is able to compare the current branch with the base branch.
4138
run: |
42-
if ! pdm run towncrier check --compare-with origin/${BASE_BRANCH}; then
43-
echo "::error::Please see https://github.com/DisnakeCommunity/disnake-compass/blob/master/changelog/README.rst for details on how to create a changelog entry." >&2
39+
if ! poetry run towncrier check --compare-with origin/${BASE_BRANCH}; then
40+
echo "::error::Please see https://github.com/DisnakeCommunity/disnake-compass/blob/master/changelog/README.md for details on how to create a changelog entry." >&2
4441
exit 1
4542
fi
4643
env:

0 commit comments

Comments
 (0)