Skip to content

Keep Grafana Instance Active #2580

Keep Grafana Instance Active

Keep Grafana Instance Active #2580

name: Keep Grafana Instance Active
on:
schedule:
- cron: '0 0/2 * * *'
jobs:
keep-grafana-instance-active:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get home dashboard
run: |
curl -X GET -H "Authorization: Bearer ${{ secrets.TEST_GRAFANA_INSTANCE_API_TOKEN }}" https://${{ secrets.TEST_GRAFANA_CLOUD_STACK_SLUG }}.grafana.net/api/dashboards/home
workflow-keepalive:
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: liskin/gh-workflow-keepalive@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}