1+ # # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+ # # SPDX-License-Identifier: Apache-2.0
3+
4+ # This is a reusable workflow for running the Enablement test for App Signals.
5+ # It is meant to be called from another workflow.
6+ # Read more about reusable workflows: https://docs.github.com/en/actions/using-workflows/reusing-workflows#overview
7+ name : Dotnet EC2 Windows Retry
8+ on :
9+ workflow_call :
10+ inputs :
11+ aws-region :
12+ required : true
13+ type : string
14+ caller-workflow-name :
15+ required : true
16+ type : string
17+
18+ permissions :
19+ id-token : write
20+ contents : read
21+
22+ jobs :
23+ dotnet-ec2-windows-attempt-1 :
24+ uses : ./.github/workflows/dotnet-ec2-windows-test.yml
25+ secrets : inherit
26+ with :
27+ aws-region : ${{ inputs.aws-region }}
28+ caller-workflow-name : ${{ inputs.caller-workflow-name }}
29+
30+ dotnet-ec2-windows-attempt-2 :
31+ needs : [ dotnet-ec2-windows-attempt-1 ]
32+ if : ${{ needs.dotnet-ec2-windows-attempt-1.outputs.job-started != 'true' }}
33+ uses : ./.github/workflows/dotnet-ec2-windows-test.yml
34+ secrets : inherit
35+ with :
36+ aws-region : ${{ inputs.aws-region }}
37+ caller-workflow-name : ${{ inputs.caller-workflow-name }}
38+ #
39+ # publish-metric-attempt-1:
40+ # needs: [ dotnet-ec2-windows-attempt-1, dotnet-ec2-windows-attempt-2 ]
41+ # if: always()
42+ # uses: ./.github/workflows/enablement-test-publish-result.yml
43+ # secrets: inherit
44+ # with:
45+ # aws-region: ${{ inputs.aws-region }}
46+ # caller-workflow-name: ${{ inputs.caller-workflow-name }}
47+ # validation-result: ${{ needs.dotnet-ec2-windows-attempt-1.outputs.validation-result || needs.dotnet-ec2-windows-attempt-2.outputs.validation-result }}
48+ #
49+ # publish-metric-attempt-2:
50+ # needs: [ dotnet-ec2-windows-attempt-1, dotnet-ec2-windows-attempt-2, publish-metric-attempt-1 ]
51+ # if: ${{ always() && needs.publish-metric-attempt-1.outputs.job-started != 'true' }}
52+ # uses: ./.github/workflows/enablement-test-publish-result.yml
53+ # secrets: inherit
54+ # with:
55+ # aws-region: ${{ inputs.aws-region }}
56+ # caller-workflow-name: ${{ inputs.caller-workflow-name }}
57+ # validation-result: ${{ needs.dotnet-ec2-windows-attempt-1.outputs.validation-result || needs.dotnet-ec2-windows-attempt-2.outputs.validation-result }}
0 commit comments