Keep Grafana Instance Active #2689
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |