Skip to content

Commit

Permalink
powershell syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilKWarmdahl committed Nov 19, 2024
1 parent 3ddd097 commit 137e161
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,15 @@ jobs:

- name: Check if version exist in s3
run: |
set +e
$ErrorActionPreference = 'Stop'
$PSNativeCommandUseErrorActionPreference = $true
$output = aws s3 ls ${{ env.OUTFILE }}
$ec = $LastExitCode
if ( $ec -eq "0" ){
echo "Objects found ${{ env.OUTFILE }}"
exit 1
}
elseif ( $ec -ne "1"){
elseif ( $ec -ne "1" ){
echo "$output"
}
Expand Down

0 comments on commit 137e161

Please sign in to comment.