Skip to content

Commit

Permalink
Test deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
aamend committed Mar 8, 2024
1 parent a643f54 commit 57ed6e0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,9 @@ jobs:
config = configparser.ConfigParser()
config.read_file(io.StringIO(os.environ['DB_PROFILES']))
print('Hello')
print(${{ github.event.repository.db_profile }})
print(config.sections())
if ${{ github.event.repository.db_profile }} not in config.sections():
if '${{ github.event.inputs.db_profile }}' not in config.sections():
raise Exception('Provided DB_PROFILE is not supported')
config = config['${{ github.event.repository.db_profile }}']
config = config['${{ github.event.inputs.db_profile }}']
Accelerator(
db_host=config['host'],
Expand Down

0 comments on commit 57ed6e0

Please sign in to comment.