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
--- 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