This is an automated email from the ASF dual-hosted git repository.

arm pushed a commit to branch gha-distributions
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/gha-distributions by this push:
     new 102ffb6  Accept staging as parameter
102ffb6 is described below

commit 102ffb665837df9e4c582b1b92ad29df86ea8a53
Author: Alastair McFarlane <[email protected]>
AuthorDate: Mon Jan 12 11:54:07 2026 +0000

    Accept staging as parameter
---
 atr/storage/writers/distributions.py | 1 +
 atr/tasks/gha.py                     | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/atr/storage/writers/distributions.py 
b/atr/storage/writers/distributions.py
index 753264f..a9efd84 100644
--- a/atr/storage/writers/distributions.py
+++ b/atr/storage/writers/distributions.py
@@ -126,6 +126,7 @@ class CommitteeMember(CommitteeParticipant):
                 repo=repo,
                 ref="main",  # TODO: Un-hardcode
                 workflow=workflow,
+                staging=staging,
                 arguments={},
             ).model_dump(),
             asf_uid=util.unwrap(self.__asf_uid),
diff --git a/atr/tasks/gha.py b/atr/tasks/gha.py
index 9595884..7b9123f 100644
--- a/atr/tasks/gha.py
+++ b/atr/tasks/gha.py
@@ -50,6 +50,7 @@ class DistributionWorkflow(schema.Strict):
     namespace: str = schema.description("Namespace to distribute to")
     package: str = schema.description("Package to distribute")
     version: str = schema.description("Version to distribute")
+    staging: bool = schema.description("Whether this is a staging 
distribution")
     project_name: str = schema.description("Project name in ATR")
     version_name: str = schema.description("Version name in ATR")
     platform: str = schema.description("Distribution platform")
@@ -73,9 +74,10 @@ async def trigger_workflow(args: DistributionWorkflow) -> 
results.Results | None
         "ref": args.ref,
         "inputs": {
             "atr-id": unique_id,
-            "platform": args.platform,  # TODO: This should be one workflow 
per platform
+            "platform": args.platform,
             "distribution-package": args.package,
             "distribution-version": args.version,
+            "staging": "true" if args.staging else "false",
             **args.arguments,
         },
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to