mirror of https://github.com/status-im/consul.git
Merge pull request #10196 from hashicorp/backport-ci-changes
[1.9.x] Backport CI changes
This commit is contained in:
commit
21ae726430
|
@ -850,8 +850,21 @@ jobs:
|
|||
"https://circleci.com/api/v1.1/project/github/hashicorp/consul-enterprise/tree/${CIRCLE_BRANCH}" | jq -r '.build_url'
|
||||
- run: *notify-slack-failure
|
||||
|
||||
# The noop job is a used as a very fast job in the verify-ci workflow because every workflow
|
||||
# requires at least one job. It does nothing.
|
||||
noop:
|
||||
docker:
|
||||
- image: docker.mirror.hashicorp.services/alpine:latest
|
||||
steps:
|
||||
- run: 'echo ok'
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
# verify-ci is a no-op workflow that must run on every PR. It is used in a
|
||||
# branch protection rule to detect when CI workflows are not running.
|
||||
verify-ci:
|
||||
jobs: [noop]
|
||||
|
||||
go-tests:
|
||||
jobs:
|
||||
- check-vendor: &filter-ignore-non-go-branches
|
||||
|
@ -1000,3 +1013,4 @@ workflows:
|
|||
branches:
|
||||
only:
|
||||
- master
|
||||
- /release\/\d+\.\d+\.x$/
|
||||
|
|
|
@ -157,11 +157,12 @@ if echo "$resp" | jq -e '.items[].labels[] | select(.name | contains("docs-cherr
|
|||
fi
|
||||
fi
|
||||
|
||||
git config --local user.email "github-team-consul-core@hashicorp.com"
|
||||
git config --local user.name "hc-github-team-consul-core"
|
||||
|
||||
backport_failures=0
|
||||
# loop through all labels on the PR
|
||||
for label in $labels; do
|
||||
git config --local user.email "github-team-consul-core@hashicorp.com"
|
||||
git config --local user.name "hc-github-team-consul-core"
|
||||
status "checking label: $label"
|
||||
# if the label matches docs-cherrypick, it will attempt to cherry-pick to stable-website
|
||||
if [[ $label =~ docs-cherrypick ]]; then
|
||||
|
|
Loading…
Reference in New Issue