ci: Fix for ci-test-limited rerun (#27094)

## Description
- Fix for ci-test-limited rerun

#### Type of change
- Workflow changes
## Testing
- Workflow run
This commit is contained in:
Saroj 2023-09-08 12:45:12 +05:30 committed by GitHub
parent 077935bf72
commit 1a81caf568
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,12 +115,14 @@ jobs:
echo "::set-output name=run_result::$run_result_env" echo "::set-output name=run_result::$run_result_env"
# In case this is second attempt try restoring failed tests # In case this is second attempt try restoring failed tests
- if : steps.run_result.outputs.run_result == 'failedtest'
run: echo "failed_spec_artifact=failed-spec-ci-$((${{github.run_attempt}}-1))" >> $GITHUB_ENV
- name: Restore the previous failed combine result - name: Restore the previous failed combine result
if: steps.run_result.outputs.run_result == 'failedtest' if: steps.run_result.outputs.run_result == 'failedtest'
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: combined_failed_spec_ci name: ${{ env.failed_spec_artifact }}
path: ~/combined_failed_spec_ci path: ~/failed_spec_ci
# failed_spec_env will contain list of all failed specs # failed_spec_env will contain list of all failed specs
# We are using environment variable instead of regular to support multiline # We are using environment variable instead of regular to support multiline