Skip to content

Commit 0bf0146

Browse files
committed
debug
1 parent 165157d commit 0bf0146

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/check-package-gate.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,20 @@ jobs:
5757
5858
if [[ "$name" == "fdk-aac-free" || "$name" == "redis" ]]; then
5959
# get the previous spec if it exits.
60-
previous_spec=$(git show ${{ env.base_sha }}:"$spec" 2>/dev/null)
60+
previous_spec=$(git show ${{ env.base_sha }}:"$spec" 2>/dev/null || true)
61+
git_exit_code=$?
6162
#if the spec is a new addition, we want previous version to be empty
6263
previous_version=""
6364
6465
if [[ -n "$previous_spec" ]]; then
6566
echo "Previous spec exists"
66-
# previous_version=$(rpmspec --parse <(git show ${{ env.base_sha }}:"$spec") | grep -E "^Version:\s*(.*)" | awk '{print $2}')
67+
previous_version=$(rpmspec --parse <(git show ${{ env.base_sha }}:"$spec") | grep -E "^Version:\s*(.*)" | awk '{print $2}')
6768
fi
6869
echo "Previous version: $previous_version"
6970
if [[ "$version" != "$previous_version" ]]; then
7071
1>&2 echo "**** ERROR ****"
7172
1>&2 echo "Spec '$spec' update is not allowed in Azure Linux."
72-
1>&2 echo "**** ERROR ****"
73+
1>&2 echo "**** ERROR 1 ****"
7374
error_found=1
7475
fi
7576
fi

0 commit comments

Comments
 (0)