We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a5af70 commit 14caeb4Copy full SHA for 14caeb4
.github/workflows/ci-check-ns-api-version.yml
@@ -45,7 +45,9 @@ jobs:
45
exit 1
46
fi
47
curl -su "${{ secrets.HARBOR_ROBOT_USERNAME }}":"${{ secrets.HARBOR_ROBOT_SECRET }}" "$registry/v2/$repo_name/tags/list" | jq
48
+ set +e
49
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
51
result=$?
52
if [ "${result}" -eq 0 ]; then
53
echo "Version '$TAG' defined in Cargo.toml already exists as tag in harbor repo"
0 commit comments