Skip to content
name: Update Grafana Version
on: push
# schedule:
# - cron: '0 0 1 * *' # Runs at 00:00 on the first day of every month
# workflow_dispatch: # Allows you to manually trigger the workflow
jobs:
update-grafana:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Update Grafana version
run: |
bash scripts/update-grafana-version.sh
git status
- name: Check the status of the repo
id: status
run: |
echo "status=$(git diff-index --quiet --exit-code HEAD && echo '0' || echo '1')" >> $GITHUB_OUTPUT
- name: Apply changes
if: ${{ steps.status.outputs.status == '1' }}
uses: ./.github/actions/merge-changes
with:
app-id: ${{ secrets.APP_ID }}
app-pem: ${{ secrets.APP_PEM }}