-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP * WIP * update-grafana-version script was updated and automatic update workflow * make 1 github workflow * Changes after review
- Loading branch information
Showing
2 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Update Grafana Version | ||
|
||
on: | ||
schedule: | ||
- cron: "0 8 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-grafana: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate token | ||
id: generate_token | ||
uses: tibdex/github-app-token@v2 | ||
with: | ||
app_id: ${{ secrets.APP_ID }} | ||
private_key: ${{ secrets.APP_PEM }} | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Update Grafana version | ||
run: | | ||
bash scripts/update-grafana-version.sh | ||
- 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: Create PR | ||
if: ${{ steps.status.outputs.status == '1' }} | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
token: ${{ steps.generate_token.outputs.token }} | ||
branch: new-update-plugin-examples | ||
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | ||
delete-branch: true | ||
commit-message: "chore: update configuration to latest version" | ||
title: "Chore: Bump plugin-examples configuration to latest version" | ||
body: | | ||
Bumps [`grafana-plugin-examples`](https://github.com/grafana/grafana-plugin-examples) configuration to the latest version. | ||
**Notes for reviewer:** | ||
This is an auto-generated PR which ran `npx -y @grafana/create-plugin@latest update`, updates plugin.json files, grafana-plugin-sdk-go and docker-compose files for each plugin example |
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