fix: stop triggering share-artifacts on release/tags (#9996)

This commit is contained in:
Sebastian Spaink 2021-10-27 10:49:20 -05:00 committed by GitHub
parent eec6fd5702
commit 0088be7da1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -535,6 +535,9 @@ workflows:
branches:
ignore:
- master
- release.*
tags:
ignore: /.*/
- 'release':
requires:
- 'test-go-windows'

View File

@ -1,9 +1,10 @@
#!/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.
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
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
# 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