Skip to content

Perform a GET request to collector #1067

Perform a GET request to collector

Perform a GET request to collector #1067

---
name: 'Perform a GET request to collector'
'on':
schedule:
- cron: "0 */6 * * *"
workflow_dispatch:
env:
ENDPOINT: "44.195.143.94"
defaults:
run:
shell: bash
jobs:
get-from-collector:
name: 'Perform a GET request to collector'
runs-on: ubuntu-22.04
steps:
- name: 'Perform a GET request to collector'
id: collector_sanity_check
run: |
curl $ENDPOINT || exit $?
continue-on-error: true
- name: Check out `certsuite`
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
repository: redhat-best-practices-for-k8s/certsuite
path: certsuite
- name: Send chat msg to dev team if collector's GET request failed.
if: ${{ steps.collector_sanity_check.outcome == 'failure' }}
uses: ./certsuite/.github/actions/slack-webhook-sender
with:
working_directory: certsuite
message: 'Collector GET request has failed'
slack_webhook: '${{ secrets.SLACK_ALERT_WEBHOOK_URL }}'