summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/uses-workflow/push.yml
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/runner/testdata/uses-workflow/push.yml')
-rw-r--r--pkg/runner/testdata/uses-workflow/push.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkg/runner/testdata/uses-workflow/push.yml b/pkg/runner/testdata/uses-workflow/push.yml
new file mode 100644
index 0000000..ddc37b8
--- /dev/null
+++ b/pkg/runner/testdata/uses-workflow/push.yml
@@ -0,0 +1,35 @@
+on: push
+
+jobs:
+ reusable-workflow:
+ uses: nektos/act-test-actions/.github/workflows/reusable-workflow.yml@main
+ with:
+ string_required: string
+ bool_required: ${{ true }}
+ number_required: 1
+ secrets:
+ 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