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:
parent
6455896fd3
commit
44f2cf9cf1
2 changed files with 21 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue