2022-12-15 10:45:22 -06:00
|
|
|
name: local-reusable-workflows
|
|
|
|
on: pull_request
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
reusable-workflow:
|
|
|
|
uses: ./.github/workflows/local-reusable-workflow.yml
|
|
|
|
with:
|
|
|
|
string_required: string
|
|
|
|
bool_required: ${{ true }}
|
|
|
|
number_required: 1
|
|
|
|
secrets:
|
|
|
|
secret: keep_it_private
|
|
|
|
|
|
|
|
reusable-workflow-with-inherited-secrets:
|
|
|
|
uses: ./.github/workflows/local-reusable-workflow.yml
|
|
|
|
with:
|
|
|
|
string_required: string
|
|
|
|
bool_required: ${{ true }}
|
|
|
|
number_required: 1
|
|
|
|
secrets: inherit
|
|
|
|
|
2023-04-13 08:47:59 -05:00
|
|
|
reusable-workflow-with-on-string-notation:
|
|
|
|
uses: ./.github/workflows/local-reusable-workflow-no-inputs-string.yml
|
|
|
|
|
|
|
|
reusable-workflow-with-on-array-notation:
|
|
|
|
uses: ./.github/workflows/local-reusable-workflow-no-inputs-array.yml
|
|
|
|
|
2022-12-15 10:45:22 -06:00
|
|
|
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
|