-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! trigger action on push to branch for testing porpuses
- Loading branch information
Showing
3 changed files
with
52 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
set -uxo pipefail | ||
|
||
# Variables | ||
file_path=$1 | ||
endpoint_url=$2 | ||
|
||
export AWS_REQUEST_CHECKSUM_CALCULATION=when_required | ||
export AWS_RESPONSE_CHECKSUM_VALIDATION=when_required | ||
|
||
# Delete the file from S3 | ||
aws s3 rm "$file_path" --endpoint-url="$endpoint_url" | ||
|
||
# Check if the delete was successful | ||
if [ $? -eq 0 ]; then | ||
echo "File $file_path deleted" | ||
else | ||
echo "Failed to delete file $file_path" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters