Skip to content

Commit 253adb5

Browse files
committed
Update CI files
1 parent 2cf19f4 commit 253adb5

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.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
@@ -149,11 +149,33 @@ jobs:
149149
permissions:
150150
contents: write
151151

152+
env:
153+
TAG_NAME: "${{ github.ref_name }}"
154+
152155
steps:
156+
- uses: "actions/checkout@v4"
157+
with:
158+
fetch-depth: 0
159+
path: "pulp_npm"
160+
161+
- uses: "actions/setup-python@v5"
162+
with:
163+
python-version: "3.11"
164+
165+
- name: "Install towncrier"
166+
run: |
167+
pip install towncrier
168+
169+
- name: "Get release notes"
170+
id: get_release_notes
171+
run: |
172+
NOTES=$(towncrier build --draft --version $TAG_NAME)
173+
echo "body<<EOF" >> $GITHUB_OUTPUT
174+
echo "$NOTES" >> $GITHUB_OUTPUT
175+
echo "EOF" >> $GITHUB_OUTPUT
176+
153177
- name: "Create release on GitHub"
154178
uses: "actions/github-script@v7"
155-
env:
156-
TAG_NAME: "${{ github.ref_name }}"
157179
with:
158180
script: |
159181
const { TAG_NAME } = process.env;
@@ -162,5 +184,6 @@ jobs:
162184
owner: context.repo.owner,
163185
repo: context.repo.repo,
164186
tag_name: TAG_NAME,
187+
body: `${{ steps.get_release_notes.outputs.body }}`,
165188
make_latest: "legacy",
166189
});

0 commit comments

Comments
 (0)