Skip to content

Commit 4ee8c48

Browse files
committed
Update CI files
1 parent c62e2db commit 4ee8c48

2 files changed

Lines changed: 28 additions & 2 deletions

File tree

.ci/scripts/calc_constraints.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ def to_upper_bound(req):
5353
if requirement.name == "pulpcore":
5454
# An exception to allow for pulpcore deprecation policy.
5555
return fetch_pulpcore_upper_bound(requirement)
56+
# skip requirement with environment scopes. E.g 'foo==1.0.0;python_version>=3.9'
57+
if requirement.marker:
58+
return f"# ENVIRONMENT IS UNTRACKABLE: {req}"
5659
for spec in requirement.specifier:
5760
if spec.operator == "~=":
5861
return f"# NO BETTER CONSTRAINT: {req}"

.github/workflows/publish.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,33 @@ jobs:
153153
permissions:
154154
contents: write
155155

156+
env:
157+
TAG_NAME: "${{ github.ref_name }}"
158+
156159
steps:
160+
- uses: "actions/checkout@v4"
161+
with:
162+
fetch-depth: 0
163+
path: "pulpcore"
164+
165+
- uses: "actions/setup-python@v5"
166+
with:
167+
python-version: "3.11"
168+
169+
- name: "Install towncrier"
170+
run: |
171+
pip install towncrier
172+
173+
- name: "Get release notes"
174+
id: get_release_notes
175+
run: |
176+
NOTES=$(towncrier build --draft --version $TAG_NAME)
177+
echo "body<<EOF" >> $GITHUB_OUTPUT
178+
echo "$NOTES" >> $GITHUB_OUTPUT
179+
echo "EOF" >> $GITHUB_OUTPUT
180+
157181
- name: "Create release on GitHub"
158182
uses: "actions/github-script@v7"
159-
env:
160-
TAG_NAME: "${{ github.ref_name }}"
161183
with:
162184
script: |
163185
const { TAG_NAME } = process.env;
@@ -166,5 +188,6 @@ jobs:
166188
owner: context.repo.owner,
167189
repo: context.repo.repo,
168190
tag_name: TAG_NAME,
191+
body: `${{ steps.get_release_notes.outputs.body }}`,
169192
make_latest: "legacy",
170193
});

0 commit comments

Comments
 (0)