diff --git a/deploy/portainer/deploy.py b/deploy/portainer/deploy.py index 583e291..c64d9f8 100644 --- a/deploy/portainer/deploy.py +++ b/deploy/portainer/deploy.py @@ -132,7 +132,7 @@ owner = repo_parts[0] repo = repo_parts[1] ref_parts = deploy_ref.strip('/').split('/') -branch = ref_parts[2] +branch = ref_parts[-1] webhook_payload = { "type": "gitea",