Show More
@@ -56,6 +56,11 b' rust-cargo-test-py3:' | |||
|
56 | 56 | |
|
57 | 57 | phabricator-refresh: |
|
58 | 58 | stage: phabricator |
|
59 | rules: | |
|
60 | - if: '"$PHABRICATOR_TOKEN" != "NO-PHAB"' | |
|
61 | when: on_success | |
|
62 | - if: '"$PHABRICATOR_TOKEN" == "NO-PHAB"' | |
|
63 | when: never | |
|
59 | 64 | variables: |
|
60 | 65 | DEFAULT_COMMENT: ":white_check_mark: refresh by Heptapod after a successful CI run (:octopus: :green_heart:)" |
|
61 | 66 | STABLE_COMMENT: ":white_check_mark: refresh by Heptapod after a successful CI run (:octopus: :green_heart:)\n⚠ This patch is intended for stable ⚠\n{image https://media.giphy.com/media/nYI8SmmChYXK0/source.gif}" |
@@ -1,6 +1,11 b'' | |||
|
1 | 1 | #!/bin/bash |
|
2 | 2 | set -eu |
|
3 | 3 | |
|
4 | if [[ "$PHABRICATOR_TOKEN" == "NO-PHAB" ]]; then | |
|
5 | echo 'Skipping Phabricator Step' >&2 | |
|
6 | exit 0 | |
|
7 | fi | |
|
8 | ||
|
4 | 9 | revision_in_stack=`hg log \ |
|
5 | 10 | --rev '.#stack and ::. and topic()' \ |
|
6 | 11 | -T '\nONE-REV\n' \ |
@@ -27,6 +32,7 b' fi' | |||
|
27 | 32 | |
|
28 | 33 | if [[ "$PHABRICATOR_TOKEN" == "" ]]; then |
|
29 | 34 | echo 'missing $PHABRICATOR_TOKEN variable' >&2 |
|
35 | echo '(use PHABRICATOR_TOKEN="NO-PHAB" to disable this step)' >&2 | |
|
30 | 36 | exit 2 |
|
31 | 37 | fi |
|
32 | 38 |
General Comments 0
You need to be logged in to leave comments.
Login now