feat: cache the workdir of the release-notes-assistant (#69)

there is no need for additional testing: the existing tests covering the use of the release-notes-assistant will unconditionally use the cache and be proof it does not break things

Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/69
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
This commit is contained in:
Earl Warren 2025-07-27 14:03:10 +00:00 committed by earl-warren
parent 76ca8d5b17
commit 26fe28ef1e
No known key found for this signature in database
GPG key ID: F128CBE6AB3A7201
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
}