Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 27 additions & 3 deletions .github/workflows/update-schema.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: create schema update PR

on:
# Temporarily testing on PR - change back to push: main after testing
pull_request:
paths:
- 'internal/**'
- 'pkg/**'
- 'go.mod'
- 'go.sum'
push:
branches:
- main
Expand All @@ -22,6 +29,23 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

# TODO: Restore GitHub App authentication once app is installed/configured
# - name: Get secrets from Vault
# uses: grafana/shared-workflows/actions/get-vault-secrets@75804962c1ba608148988c1e2dc35fbb0ee21746
# with:
# repo_secrets: |
# GITHUB_APP_ID=github_app:app-id
# GITHUB_APP_PRIVATE_KEY=github_app:private-key

# - name: Generate GitHub App token
# id: generate_github_token
# uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
# with:
# app-id: ${{ env.GITHUB_APP_ID }}
# private-key: ${{ env.GITHUB_APP_PRIVATE_KEY }}
# owner: ${{ github.repository_owner }}
# repositories: ${{ github.event.repository.name }}

- name: Set up Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
Expand Down Expand Up @@ -65,7 +89,7 @@ jobs:
if: steps.schema-check.outputs.schema_changed == 'true'
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }} # TODO: Use GitHub App token once configured
commit-message: |
chore: update provider schema and issue templates

Expand All @@ -90,5 +114,5 @@ jobs:
branch: 'automated/update-schema'
delete-branch: true
base: main
committer: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>'
author: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>'
committer: 'terraform-provider-grafana[bot] <terraform-provider-grafana[bot]@users.noreply.github.com>'
author: 'terraform-provider-grafana[bot] <terraform-provider-grafana[bot]@users.noreply.github.com>'
1 change: 0 additions & 1 deletion current_schema.json

This file was deleted.

2 changes: 1 addition & 1 deletion internal/resources/slo/resource_slo.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func createAssertsSLOClient(baseClient *slo.APIClient) *slo.APIClient {
func resourceSlo() *common.Resource {
schema := &schema.Resource{
Description: `
Resource manages Grafana SLOs.
Resource manages Grafana SLOs (Service Level Objectives).

* [Official documentation](https://grafana.com/docs/grafana-cloud/alerting-and-irm/slo/)
* [API documentation](https://grafana.com/docs/grafana-cloud/alerting-and-irm/slo/api/)
Expand Down
Loading