Skip to content

Commit bd3e236

Browse files
DEVOPS-49 fixed pyfile crash
1 parent 0c86aef commit bd3e236

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

get_repository_public_key.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ def main():
8383
os.system(f'echo "REPOSITORY_PUBLIC_KEY={repo_public_key}" >> $GITHUB_ENV')
8484
print(f"Public key added as a environment variable")
8585
repo_public_key_id = get_repository_public_key_id(organization, repository_name)
86-
os.system(f'echo "REPOSITORY_PUBLIC_KEY_ID={repo_public_key}" >> $GITHUB_ENV')
86+
os.system(f'echo "REPOSITORY_PUBLIC_KEY_ID={repo_public_key_id}" >> $GITHUB_ENV')
8787
print(f"Public key id added as a environment variable")
8888

8989

9090
# return encrypted_secret
9191
except Exception as e:
92-
print(f"Error encrypting secret: {e}")
92+
print(f"Error retrieving public key and public key id of {repository_name}: {e}")
9393
exit(1)
9494

9595
if __name__ == "__main__":

0 commit comments

Comments
 (0)