actions: show how secrets & outputs work with workflow_call (#934)

Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/934
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-16 20:47:03 +00:00 committed by earl-warren
parent 6455896fd3
commit 44f2cf9cf1
No known key found for this signature in database
GPG key ID: F128CBE6AB3A7201
2 changed files with 21 additions and 1 deletions

View file

@ -9,3 +9,15 @@ jobs:
uses: ./.forgejo/workflows/reusable.yml
with:
parameter1: value1
secrets:
secret: keep_it_private
verify:
needs: [caller]
runs-on: docker
container:
image: code.forgejo.org/oci/node:22-bookworm
steps:
- run: |
set -x
test "${{ needs.caller.outputs.output1 }}" = "outputvalue1"