chore: remove triggering update-config bot in CI (#10195)

This commit is contained in:
Sebastian Spaink 2021-12-01 16:38:43 -06:00 committed by GitHub
parent bc11e20405
commit ea7b059549
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 41 deletions

View File

@ -32,10 +32,6 @@ commands:
- store_artifacts:
path: './new-config'
destination: 'new-config'
- persist_to_workspace:
root: './new-config'
paths:
- '*'
check-changed-files-or-halt:
steps:
- run: ./scripts/check-file-changes.sh
@ -417,13 +413,6 @@ jobs:
steps:
- generate-config:
os: windows
update-config:
executor: go-1_17
steps:
- checkout
- attach_workspace:
at: '/new-config'
- run: ./scripts/update_config.sh ${UPDATE_CONFIG_TOKEN}
commonjobs:
- &test-awaiter
@ -511,14 +500,6 @@ workflows:
branches:
only:
- master
- 'update-config':
requires:
- 'generate-config-win'
- 'generate-config'
filters:
branches:
only:
- master
- 'share-artifacts':
requires:
- 'i386-package'

View File

@ -1,22 +0,0 @@
#!/bin/bash
# This script is responsible for triggering the Tiger Bot endpoint that will create the pull request with the newly generated configs.
# This script is meant to be only ran in within the Circle CI pipeline.
token=$1
config_path="/new-config"
if [ ! -f "$config_path/telegraf.conf" ]; then
echo "$config_path/telegraf.conf does not exist"
exit
fi
if [ ! -f "$config_path/telegraf_windows.conf" ]; then
echo "$config_path/telegraf_windows.conf does not exist"
exit
fi
if cmp -s "$config_path/telegraf.conf" "etc/telegraf.conf" && cmp -s "$config_path/telegraf_windows.conf" "etc/telegraf_windows.conf"; then
echo "Both telegraf.conf and telegraf_windows.conf haven't changed"
fi
curl -H "Authorization: Bearer $token" -X POST "https://182c7jdgog.execute-api.us-east-1.amazonaws.com/prod/updateConfig"