diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 06ab8ad..a2d8535 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -104,8 +104,8 @@ jobs: - name: Check if version exist in s3 run: | - $ErrorActionPreference = 'SilentlyContinue' - $output = aws s3 ls ${{ env.OUTFILE }} -ErrorAction SilentlyContinue + $ErrorActionPreference='Continue' + $output = aws s3 ls ${{ env.OUTFILE }} $ec = $LastExitCode if ( $ec -eq "0" ){ echo "Objects found ${{ env.OUTFILE }}"