Skip to content

Commit

Permalink
Update GHA S3 check block to validate on the existing s3 bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
QU3B1M committed Oct 30, 2024
1 parent d4d49d2 commit e6a5600
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,8 @@ jobs:
- name: Check if package exists on S3
if: ${{ inputs.upload }}
run: |
src="artifacts/dist/${{ steps.package.outputs.name }}"
dest="s3://packages-dev.internal.wazuh.com/development/wazuh/5.x/main/packages/"
if aws s3api head-object --bucket <some_bucket> --key <some_key>; then
if aws s3api head-object --bucket "$dest" --key "${{ steps.package.outputs.name }}"; then
echo "exists=true" >> $GITHUB_OUTPUT
else
echo "exists=false" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit e6a5600

Please sign in to comment.