We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2cbc97 commit c9eeeaaCopy full SHA for c9eeeaa
.github/workflows/check-package-gate.yml
@@ -48,7 +48,6 @@ jobs:
48
exit 0
49
fi
50
51
-
52
for spec in ${{ env.updated-specs }}
53
do
54
echo "Checking '$spec'."
@@ -57,7 +56,8 @@ jobs:
57
56
version=$(rpmspec --parse "$spec" | grep -E "^Version:\s*(.*)" | awk '{print $2}')
58
59
if [[ "$name" == "fdk-aac-free" || "$name" == "redis" ]]; then
60
- previous_version=$(rpmspec --parse <(git show ${{ env.base_sha }}:"$spec") | grep -E "^Version:\s*(.*)" | awk '{print $2}')
+ # if the spec is a new addition, we want previous version to be empty
+ previous_version=$(git show ${{ env.base_sha }}:"$spec" 2>/dev/null | rpmspec --parse - | grep -E "^Version:\s*(.*)" | awk '{print $2}')
61
if [[ "$version" != "$previous_version" ]]; then
62
1>&2 echo "**** ERROR ****"
63
1>&2 echo "Spec '$spec' change is not allowed in Azure Linux."
0 commit comments