Skip to content

Commit 69fd786

Browse files
authored
Merge pull request #247 from arnested/changelog-url
Don't hardcode changelog URL
2 parents 01eda7c + ee4a176 commit 69fd786

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@ jobs:
6262
- name: apt-ftparchive release
6363
run: |
6464
apt-ftparchive -o APT::FTPArchive::Release::Origin="Arne Jørgensen" -o APT::FTPArchive::Release::Label="${{ steps.go-version.outputs.module }}" release . > Release
65-
echo 'Changelogs: https://systemd-state.arnested.dk/changelog?path=@CHANGEPATH@' >> Release
65+
echo "Changelogs: $(gh api /repos/{owner}/{repo}/pages --jq .html_url)changelog?path=@CHANGEPATH@" >> Release
6666
gpg -abs --no-tty --batch --yes -o - Release > Release.gpg
6767
gpg --clearsign --no-tty --batch --yes -o - Release > InRelease
6868
working-directory: site
69+
env:
70+
GH_TOKEN: ${{ github.token }}
6971
- uses: ZacJW/[email protected]
7072
with:
7173
input_files: '[["README.md"]]'

0 commit comments

Comments
 (0)