Skip to content

Commit

Permalink
Merge pull request #493 from airtai/dev
Browse files Browse the repository at this point in the history
Dev #492
  • Loading branch information
kumaranvpl authored Jul 3, 2024
2 parents 0d1dae9 + e53a030 commit 3a2346c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fastagency/saas_app_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ def _set_github_actions_secrets(self, cwd: str, env: Dict[str, Any]) -> None:
command = 'gh secret set FASTAGENCY_DEPLOYMENT_UUID --body "$FASTAGENCY_DEPLOYMENT_UUID" --app actions'
self._run_cli_command(command, cwd=cwd, env=secrets_env, print_output=True)

command = 'gh secret set USER_GH_PAT --body "$GH_TOKEN" --app actions'
self._run_cli_command(command, cwd=cwd, env=secrets_env, print_output=True)

command = f'gh variable set REACT_APP_NAME --body "{self.app_name}"'
self._run_cli_command(command, cwd=cwd, env=secrets_env, print_output=True)

Expand Down
1 change: 1 addition & 0 deletions tests/test_saas_app_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def test_set_github_actions_secrets(
expected_commands = [
'gh secret set FLY_API_TOKEN --body "$FLY_API_TOKEN" --app actions',
'gh secret set FASTAGENCY_DEPLOYMENT_UUID --body "$FASTAGENCY_DEPLOYMENT_UUID" --app actions',
'gh secret set USER_GH_PAT --body "$GH_TOKEN" --app actions',
f'gh variable set REACT_APP_NAME --body "{saas_app_generator.app_name}"',
f'gh variable set FLY_IO_APP_NAME --body "{saas_app_generator.fly_app_name}"',
]
Expand Down

0 comments on commit 3a2346c

Please sign in to comment.