Skip to content

Commit 14caeb4

Browse files
committed
set +e
1 parent 0a5af70 commit 14caeb4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci-check-ns-api-version.yml

+2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ jobs:
4545
exit 1
4646
fi
4747
curl -su "${{ secrets.HARBOR_ROBOT_USERNAME }}":"${{ secrets.HARBOR_ROBOT_SECRET }}" "$registry/v2/$repo_name/tags/list" | jq
48+
set +e
4849
curl -su ${{ secrets.HARBOR_ROBOT_USERNAME }}:${{ secrets.HARBOR_ROBOT_SECRET }} "$registry/v2/$repo_name/tags/list" | jq -e --arg search $TAG '.tags | index($search)' > /dev/null
50+
set -e
4951
result=$?
5052
if [ "${result}" -eq 0 ]; then
5153
echo "Version '$TAG' defined in Cargo.toml already exists as tag in harbor repo"

0 commit comments

Comments
 (0)