Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit 977aa2f

Browse files
committed
Really correct tag deletion logic
1 parent bfcf7fd commit 977aa2f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tools/ci/pr_preview.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,11 @@ def update_deployment(self, target, deployment, state, description=''):
200200
class Remote(object):
201201
def __init__(self, github_project):
202202
# The repository in the GitHub Actions environment is configured with
203-
# a remote whose URL uses HTTPS, making it unsuitable for pushing
204-
# changes.
205-
self._url = '[email protected]:{}.git'.format(github_project)
203+
# a remote whose URL uses unauthenticated HTTPS, making it unsuitable
204+
# for pushing changes.
205+
self._url = 'https://{}@github.com/{}.git'.format(
206+
os.environ.get('GITHUB_TOKEN'), github_project
207+
)
206208

207209
def get_revision(self, refspec):
208210
output = subprocess.check_output([

0 commit comments

Comments
 (0)