Skip to content

Commit a4dc48f

Browse files
authored
Merge pull request #174 from python-astrodynamics/feature/release-notes-changelog
Link to the change log in release notes
2 parents 8258f51 + 64837fb commit a4dc48f

1 file changed

Lines changed: 2 additions & 15 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,12 @@ jobs:
4040
permissions:
4141
contents: write
4242
steps:
43-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
44-
with:
45-
persist-credentials: false
46-
- name: Extract release notes
47-
run: |
48-
awk -v version="$GITHUB_REF_NAME" '
49-
index($0, "/releases/tag/" version ">`_ - ") { found = 1; skip_underline = 1; next }
50-
found && skip_underline { skip_underline = 0; next }
51-
found && /^[0-9][^ ]*_ - [0-9]{4}-[0-9]{2}-[0-9]{2}$/ { exit }
52-
found && /\/releases\/tag\/[^>]+>`_ - [0-9]{4}-[0-9]{2}-[0-9]{2}$/ { exit }
53-
found { print }
54-
END { if (!found) exit 1 }
55-
' docs/changelog.rst > release-notes.rst
56-
grep -q '[^[:space:]]' release-notes.rst
5743
- name: Create GitHub Release
5844
run: |
5945
gh release create "$GITHUB_REF_NAME" \
6046
--verify-tag \
6147
--title "$GITHUB_REF_NAME" \
62-
--notes-file release-notes.rst
48+
--notes "See the [change log](https://spacetrack.readthedocs.io/en/$GITHUB_REF_NAME/changelog.html) for the changes in this release."
6349
env:
6450
GH_TOKEN: ${{ github.token }}
51+
GH_REPO: ${{ github.repository }}

0 commit comments

Comments
 (0)