phab-refresh: extract the comment in a variable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 19 Apr 2021 11:04:11 +0200
changeset 46979 66cc5f867ddc
parent 46978 dc8976cc3a6e
child 46980 75351b8b2082
phab-refresh: extract the comment in a variable This make the script more readable and it is about to become more complex. Differential Revision: https://phab.mercurial-scm.org/D10463
contrib/heptapod-ci.yml
--- a/contrib/heptapod-ci.yml	Mon Apr 19 16:53:45 2021 -0700
+++ b/contrib/heptapod-ci.yml	Mon Apr 19 11:04:11 2021 +0200
@@ -51,8 +51,10 @@
 
 phabricator-refresh:
     stage: phabricator
+    variables:
+      DEFAULT_COMMENT: ":white_check_mark: refresh by Heptapod after a successful CI run (:octopus: :green_heart:)"
     script:
-      - "./contrib/phab-refresh-stack.sh --comment \":white_check_mark: refresh by Heptapod after a successful CI run (:octopus: :green_heart:)\""
+      - "./contrib/phab-refresh-stack.sh --comment \"$DEFAULT_COMMENT\""
 
 test-py2:
     <<: *runtests