Skip to content

Commit

Permalink
Check that the ETag value is nonempty
Browse files Browse the repository at this point in the history
  • Loading branch information
toobuntu committed Aug 22, 2024
1 parent a7db8b2 commit d2563dd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/update-actionlint-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ jobs:
# Read the ETag value after downloading
current_etag=$(< "$etag_file_path")
# Check that the ETag value is nonempty
if test -n "$current_etag"; then
echo "current_etag exists and is non-empty. Continuing..."
else
echo "current_etag is empty or does not exist. Exiting..."
exit 1 # Exit with an error code to fail the workflow
fi
# Check if the ETag values differ
if [ "$previous_etag" != "$current_etag" ]; then
echo "$file_path was downloaded."
Expand Down

0 comments on commit d2563dd

Please sign in to comment.