We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8083c24 commit 74bbd88Copy full SHA for 74bbd88
1 file changed
generate_jwt.py
@@ -85,6 +85,9 @@ def generate_token_by_post_call(installation_id:int, jwt:str):
85
if response.status_code == 201:
86
print(f'Github app installation token generate succcessfully, expires at {response_json["expires_at"]}')
87
os.environ['GH_APP_TOKEN'] = response_json['token']
88
+ # Write the token to GITHUB_ENV to be available in subsequent steps
89
+ with open(os.environ['GITHUB_ENV'], 'a') as fh:
90
+ fh.write(f"GH_APP_TOKEN={response_json['token']}\n")
91
92
def main():
93
"""
0 commit comments