Fetch tags after cloning (#46921)

This commit is contained in:
Dimitris Sotirakis
2022-03-24 11:54:58 +00:00
committed by GitHub
parent cac6936015
commit 9bf82c37e3
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -167,8 +167,10 @@ def trigger_test_release():
'commands': [
'git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git" --depth=1',
'cd grafana-enterprise',
'git fetch origin "refs/tags/*:refs/tags/*"',
'git tag -d $${TEST_TAG} && git push --delete origin $${TEST_TAG} && git tag $${TEST_TAG} && git push origin $${TEST_TAG}',
'cd -',
'git fetch origin "refs/tags/*:refs/tags/*"',
'git remote add downstream https://github.com/grafana/$${DOWNSTREAM_REPO}.git',
'git tag -d $${TEST_TAG} && git push --delete downstream $${TEST_TAG} && git tag $${TEST_TAG} && git push downstream $${TEST_TAG}',
],