2022-03-30 12:20:45 -05:00
|
|
|
on: push
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
reusable-workflow:
|
2023-01-19 14:49:11 -06:00
|
|
|
uses: nektos/act-test-actions/.github/workflows/reusable-workflow.yml@main
|
2022-03-30 12:20:45 -05:00
|
|
|
with:
|
2023-01-19 14:49:11 -06:00
|
|
|
string_required: string
|
|
|
|
bool_required: ${{ true }}
|
|
|
|
number_required: 1
|
2022-03-30 12:20:45 -05:00
|
|
|
secrets:
|
2023-01-19 14:49:11 -06:00
|
|
|
secret: keep_it_private
|
|
|
|
|
|
|
|
reusable-workflow-with-inherited-secrets:
|
|
|
|
uses: nektos/act-test-actions/.github/workflows/reusable-workflow.yml@main
|
|
|
|
with:
|
|
|
|
string_required: string
|
|
|
|
bool_required: ${{ true }}
|
|
|
|
number_required: 1
|
|
|
|
secrets: inherit
|
|
|
|
|
|
|
|
output-test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs:
|
|
|
|
- reusable-workflow
|
|
|
|
- reusable-workflow-with-inherited-secrets
|
|
|
|
steps:
|
|
|
|
- name: output with secrets map
|
|
|
|
run: |
|
|
|
|
echo reusable-workflow.output=${{ needs.reusable-workflow.outputs.output }}
|
|
|
|
[[ "${{ needs.reusable-workflow.outputs.output == 'string' }}" = "true" ]] || exit 1
|
|
|
|
|
|
|
|
- name: output with inherited secrets
|
|
|
|
run: |
|
|
|
|
echo reusable-workflow-with-inherited-secrets.output=${{ needs.reusable-workflow-with-inherited-secrets.outputs.output }}
|
|
|
|
[[ "${{ needs.reusable-workflow-with-inherited-secrets.outputs.output == 'string' }}" = "true" ]] || exit 1
|