Skip to content

Commit

Permalink
Enhance lambda_handler: use a consistent branch name 'repo-init' for …
Browse files Browse the repository at this point in the history
…triggering workflows instead of the feature branch variable
  • Loading branch information
Your Name committed May 14, 2025
1 parent e78a12a commit 23b04d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions template_automation/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,11 @@ def lambda_handler(event: dict, context) -> dict:
# Optionally trigger initialization workflow
if template_input.trigger_init_workflow:
try:
logger.info(f"Attempting to trigger workflow initialize.yml in repository {repo_name}")
logger.info(f"Attempting to trigger workflow initialize.yml on branch repo-init in repository {repo_name}")
github.trigger_workflow(
repo_name=repo_name,
workflow_id="initialize.yml",
ref=feature_branch
ref="repo-init" # Using the consistent branch name instead of feature_branch variable
)
logger.info(f"Successfully triggered initialize.yml workflow in repository {repo_name}")
except requests.exceptions.HTTPError as e:
Expand Down

0 comments on commit 23b04d5

Please sign in to comment.