chore: do not needlessly upload an artifact when there is no build (#916)

- ${{ needs.build.outputs.built }} is true if there is a build from source, false otherwise
- prepare-end-to-end local action does not attempt to download an artifact if inputs.built  is false

Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/916
Reviewed-by: Gusted <gusted@noreply.code.forgejo.org>
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-08-15 07:34:38 +00:00 committed by earl-warren
parent 761ff8aa08
commit 6455896fd3
No known key found for this signature in database
GPG key ID: F128CBE6AB3A7201
2 changed files with 23 additions and 0 deletions

View file

@ -1,3 +1,7 @@
inputs:
built:
description: 'True if a source build is available, false otherwise'
runs:
using: "composite"
steps:
@ -16,6 +20,7 @@ runs:
install-only: true
- run: forgejo-binary.sh ensure_user forgejo
- uses: actions/download-artifact@v3
if: ${{ inputs.built == true }}
with:
name: forgejo-dev
path: /srv/forgejo-binaries