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

@ -57,6 +57,12 @@ inputs:
runs:
using: "composite"
steps:
- if: ${{ inputs.release-notes-assistant }}
uses: https://data.forgejo.org/actions/cache@v4
with:
key: rna-${{ inputs.repo }}
path: ${{ forge.action_path }}/rna
- run: echo "${{ forge.action_path }}" >> $FORGEJO_PATH
shell: bash
- run: |
@ -78,6 +84,7 @@ runs:
export PRERELEASE="${{ inputs.prerelease }}"
export RELEASE_NOTES_ASSISTANT="${{ inputs.release-notes-assistant }}"
export RELEASE_NOTES_ASSISTANT_WORKDIR=${{ forge.action_path }}/rna
export HIDE_ARCHIVE_LINK="${{ inputs.hide-archive-link }}"