Add GH token when referring to remote - add --quite when running git push (#46926)

This commit is contained in:
Dimitris Sotirakis 2022-03-24 15:01:49 +00:00 committed by GitHub
parent c42b0d7498
commit 0e682397ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -711,9 +711,9 @@ steps:
&& 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}
- git remote add downstream https://$${GITHUB_TOKEN}@github.com/grafana/$${DOWNSTREAM_REPO}.git
- git tag -d $${TEST_TAG} && git push --delete downstream --quiet $${TEST_TAG} &&
git tag $${TEST_TAG} && git push downstream $${TEST_TAG} --quiet
environment:
DOWNSTREAM_REPO:
from_secret: downstream
@ -4411,6 +4411,6 @@ kind: secret
name: gcp_upload_artifacts_key
---
kind: signature
hmac: a6d1a7ba0b32ac93ba85f81961ee7494818f214829e034f2ef98f88d7728cbd0
hmac: 7b8d6e6cb7f6b8846de99626b8e0e61c795e93f1a02b32103ec13547c9007f5e
...

View File

@ -171,8 +171,8 @@ def trigger_test_release():
'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}',
'git remote add downstream https://$${GITHUB_TOKEN}@github.com/grafana/$${DOWNSTREAM_REPO}.git',
'git tag -d $${TEST_TAG} && git push --delete downstream --quiet $${TEST_TAG} && git tag $${TEST_TAG} && git push downstream $${TEST_TAG} --quiet',
],
'failure': 'ignore',
'when': {