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

kou pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/arrow-flight-sql-postgresql.git


The following commit(s) were added to refs/heads/main by this push:
     new cafe27d  Don't add --dry-run on X.Y.Z tag (#125)
cafe27d is described below

commit cafe27dace45a92153fc04198c2e5a2713688e58
Author: Sutou Kouhei <[email protected]>
AuthorDate: Wed Sep 13 15:35:43 2023 +0900

    Don't add --dry-run on X.Y.Z tag (#125)
    
    Closes GH-116
---
 Rakefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Rakefile b/Rakefile
index d664392..774abbf 100644
--- a/Rakefile
+++ b/Rakefile
@@ -102,7 +102,9 @@ namespace :doc do
         sh("git", "commit", "-m", "Publish", "--allow-empty")
         unless ENV["GITHUB_EVENT_NAME"] == "pull_request"
           dry_run = []
-          dry_run << "--dry-run" unless ENV["GITHUB_REF_NAME"] == "main"
+          need_publish = ((is_release and not is_release_candiate) or
+                          ENV["GITHUB_REF_NAME"] == "main")
+          dry_run << "--dry-run" unless need_publish
           sh("git", "push", *dry_run, "origin", "asf-site:asf-site")
         end
       end

Reply via email to