fix: stop triggering share-artifacts on release/tags (#9996)
This commit is contained in:
parent
eec6fd5702
commit
0088be7da1
|
|
@ -535,6 +535,9 @@ workflows:
|
||||||
branches:
|
branches:
|
||||||
ignore:
|
ignore:
|
||||||
- master
|
- master
|
||||||
|
- release.*
|
||||||
|
tags:
|
||||||
|
ignore: /.*/
|
||||||
- 'release':
|
- 'release':
|
||||||
requires:
|
requires:
|
||||||
- 'test-go-windows'
|
- 'test-go-windows'
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# CIRCLE-CI SCRIPT: This file is used exclusively for CI
|
||||||
# To prevent the tests/builds to run for only a doc change, this script checks what files have changed in a pull request.
|
# To prevent the tests/builds to run for only a doc change, this script checks what files have changed in a pull request.
|
||||||
|
|
||||||
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
||||||
echo $BRANCH
|
echo $BRANCH
|
||||||
if [[ "$BRANCH" != "master" ]] && [[ "$BRANCH" != release* ]]; then # This should never skip for master and release branches
|
if [[ ${CIRCLE_PULL_REQUEST##*/} != "" ]]; then # Only skip if their is an associated pull request with this job
|
||||||
# Ask git for all the differences between this branch and master
|
# Ask git for all the differences between this branch and master
|
||||||
# Then use grep to look for changes in the .circleci/ directory, anything named *.go or *.mod or *.sum or *.sh or Makefile
|
# Then use grep to look for changes in the .circleci/ directory, anything named *.go or *.mod or *.sum or *.sh or Makefile
|
||||||
# If no match is found, then circleci step halt will stop the CI job but mark it successful
|
# If no match is found, then circleci step halt will stop the CI job but mark it successful
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue