]> ruderich.org/simon Gitweb - punyci/punyci.git/commitdiff
Use PUNYCI=wait in post-commit mode to wait for the CI job
authorSimon Ruderich <simon@ruderich.org>
Wed, 25 Feb 2026 07:53:34 +0000 (08:53 +0100)
committerSimon Ruderich <simon@ruderich.org>
Wed, 25 Feb 2026 07:53:34 +0000 (08:53 +0100)
main.go

diff --git a/main.go b/main.go
index e02fb3390619f938520ef7aa25fe648995f553d7..b8784ea2ea5f96bbe3f496f748bf3b775f3abed3 100644 (file)
--- a/main.go
+++ b/main.go
@@ -93,8 +93,9 @@ func postCommit() error {
        if err != nil {
                return err
        }
+       pushOptions := strings.Split(os.Getenv("PUNYCI"), ",")
 
-       return foreground(oid, branch, nil)
+       return foreground(oid, branch, pushOptions)
 }
 
 func foreground(oid, branch string, pushOptions []string) error {