Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoucheng361 committed May 11, 2024
1 parent 34bcacf commit bee5fff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/scripts/hypo/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,13 +562,16 @@ def teardown(self):
phases=[Phase.reuse, Phase.generate, Phase.target],
database=ci_db)
if os.environ.get('CI'):
print('CI is true')
event_name = os.environ.get('GITHUB_EVENT_NAME')
print(f'event_name is {event_name}')
if event_name == 'schedule':
profile = 'schedule'
else:
profile = 'pull_request'
else:
profile = os.environ.get('PROFILE', 'dev')
print(f'profile is {profile}')
settings.load_profile(profile)

s3machine = S3Machine.TestCase()
Expand Down

0 comments on commit bee5fff

Please sign in to comment.