Skip to content

Commit

Permalink
chore: add debug statements
Browse files Browse the repository at this point in the history
Signed-off-by: Sonu Saha <[email protected]>
  • Loading branch information
ahasunos committed Jan 29, 2025
1 parent 5026483 commit db09e49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/sbom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ jobs:
gem_name=$(echo "$name" | tr -d '"')
version=$(echo "$versionInfo" | tr -d '"')
# Check if the version contains a version constraint (e.g., ~>, >=, <=)
if [[ "$gem_version" =~ [\~\>\<\=\ ] ]]; then
echo "Skipping call to rubygems.org for version constraint: $gem_version"
continue # Skip processing for this gem version
if [[ "$versionInfo" =~ [\~\>\<\=\ ] ]]; then
echo "Skipping call to rubygems.org for version constraint: $versionInfo"
continue # Skip processing for this gem versionInfo
else
# Proceed with making the call to rubygems.org
echo "Making call to rubygems.org for fixed version: $gem_version"
echo "Making call to rubygems.org for fixed version: $versionInfo"
# Your logic to call rubygems.org
fi
api_url="https://rubygems.org/api/v2/rubygems/${gem_name}/versions/${version}.json"
Expand Down

0 comments on commit db09e49

Please sign in to comment.