9bdddf18e0
Secrets can be passed to reusable workflows, either explicitly by key or implicitly by `inherit`: https://docs.github.com/en/actions/using-workflows/reusing-workflows#using-inputs-and-secrets-in-a-reusable-workflow Reviewed-on: https://gitea.com/gitea/act/pulls/41 Reviewed-by: Jason Song <i@wolfogre.com> Co-authored-by: Galen Abell <galen@galenabell.com> Co-committed-by: Galen Abell <galen@galenabell.com>
16 lines
251 B
YAML
16 lines
251 B
YAML
name: test
|
|
jobs:
|
|
job1:
|
|
name: job1
|
|
runs-on: linux
|
|
uses: .gitea/workflows/build.yml
|
|
secrets:
|
|
secret: hideme
|
|
---
|
|
name: test
|
|
jobs:
|
|
job2:
|
|
name: job2
|
|
runs-on: linux
|
|
uses: .gitea/workflows/build.yml
|
|
secrets: inherit
|