Remove "CI_COMMIT_REF" notations from CI docs
Problem to solve
Remove "$CI_COMMIT_REF" notations from CI docs, which was deprecated and removed on GitLab Runner 9.0.
Further details
We still have "$CI_COMMIT_REF" in docs and specs.
$ git grep 'CI_COMMIT_REF\b'
doc/ci/variables/README.md:++ export CI_COMMIT_REF=dd648b2e48ce6518303b0bb580b2ee32fadaf045
doc/ci/variables/README.md:++ CI_COMMIT_REF=dd648b2e48ce6518303b0bb580b2ee32fadaf045
spec/lib/gitlab/ci/config/entry/rules/rule_spec.rb: let(:config) { { if: '$CI_COMMIT_REF =~ /^(?!master).+/' } }
Proposal
Replace any of them with CI_COMMIT_SHA
.
Other links/references
- On gitlab-runner we did it already: