Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
rikenm1 committed Feb 6, 2025
1 parent d17457d commit 8e629f7
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/check-package-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ jobs:
for spec in ${{ env.updated-specs }}
do
echo "Checking '$spec'."
name=$(grep -E "^Name:\s*(.*)" "$spec" | awk '{print $2}')
version=$(grep -E "^Version:\s*(.*)" "$spec" | awk '{print $2}')
# Expand macros if present
name=$(rpmspec --parse "$spec" | grep -E "^Name:\s*(.*)" | awk '{print $2}')
version=$(rpmspec --parse "$spec" | grep -E "^Version:\s*(.*)" | awk '{print $2}')
if [[ "$name" == "fdk-aac-free" || "$name" == "opus" ]]; then
previous_version=$(git show ${{ env.base_sha }}:"$spec" | grep -E "^Version:\s*(.*)" | awk '{print $2}')
Expand All @@ -66,13 +67,13 @@ jobs:
fi
if [[ "$name" == "redis" && "$version" >= "7.4" ]] || \
[[ "$name" == "packer" && "$version" >= "1.10.0" ]] || \
[[ "$name" == "terraform" && "$version" >= "1.6.0" ]]; then
1>&2 echo "**** ERROR ****"
1>&2 echo "Spec '$spec' change is not allowed in Azure Linux."
1>&2 echo "**** ERROR ****"
error_found=1
if [[ "$name" == "redis" && "$version" -gt "7.4" ]] || \
[[ "$name" == "packer" && "$version" -gt "1.10.0" ]] || \
[[ "$name" == "terraform" && "$version" -gt "1.6.0" ]]; then
1>&2 echo "**** ERROR ****"
1>&2 echo "Spec '$spec' change is not allowed in Azure Linux."
1>&2 echo "**** ERROR ****"
error_found=1
fi
done
Expand Down

0 comments on commit 8e629f7

Please sign in to comment.