From 68797728b97b77ac161526cf16bb187806a39b72 Mon Sep 17 00:00:00 2001 From: Guillaume Berche Date: Wed, 3 Jan 2024 12:13:54 +0100 Subject: [PATCH] Fix on-commits.yml + git push --delete ***github.com/orange-cloudfoundry/k3s-packages-boshrelease.git 1.24.17+k3s1 error: unable to delete '1.24.17+k3s1': remote ref does not exist error: failed to push some refs to 'https://github.com/orange-cloudfoundry/k3s-packages-boshrelease.git' --- .github/workflows/on-commits.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/on-commits.yml b/.github/workflows/on-commits.yml index 02655828..78fa4afc 100644 --- a/.github/workflows/on-commits.yml +++ b/.github/workflows/on-commits.yml @@ -141,7 +141,7 @@ jobs: git push ${remote_repo} HEAD:${INPUT_TARGET_BRANCH} # Delete any existing release with same tag. Ignore push failure if no tag exists. - git push --delete ${remote_repo} ${version} + ! git push --delete ${remote_repo} ${version} # Push the tag git push ${remote_repo} ${version} --force