feat: cache the workdir of the release-notes-assistant

This commit is contained in:
Earl Warren 2025-07-27 11:55:56 +02:00
parent 76ca8d5b17
commit 611bcc7ac1
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 9 additions and 1 deletions

View file

@ -120,7 +120,8 @@ maybe_use_release_note_assistant() {
if "$RELEASE_NOTES_ASSISTANT"; then
curl --fail -s -S -o rna https://code.forgejo.org/forgejo/release-notes-assistant/releases/download/$RELEASE_NOTES_ASSISTANT_VERSION/release-notes-assistant
chmod +x ./rna
./rna --storage release --storage-location "$TAG" --forgejo-url "$SCHEME"://placeholder:"$TOKEN"@"$HOST" --repository $REPO --token "$TOKEN" release "$TAG"
mkdir -p $RELEASE_NOTES_ASSISTANT_WORKDIR
./rna --workdir=$RELEASE_NOTES_ASSISTANT_WORKDIR --storage release --storage-location "$TAG" --forgejo-url "$SCHEME"://placeholder:"$TOKEN"@"$HOST" --repository $REPO --token "$TOKEN" release "$TAG"
fi
}