Commit bbfb3e1e authored by Lin Jen-Shin's avatar Lin Jen-Shin

Use CI_COMMIT_REF_NAME to detect branch name

Since CI_COMMIT_BRANCH does not exist for merge request pipeline
parent 5ea92bd6
...@@ -10,7 +10,7 @@ notify-update-gitaly: ...@@ -10,7 +10,7 @@ notify-update-gitaly:
extends: extends:
- .notify-slack - .notify-slack
rules: rules:
- if: '$CI_MERGE_REQUEST_IID && $CI_COMMIT_BRANCH == $GITALY_UPDATE_BRANCH' - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $GITALY_UPDATE_BRANCH'
when: on_failure when: on_failure
allow_failure: true allow_failure: true
variables: variables:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment