mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
5ea16cb947
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 0 * * 1'
|
|
|
|
jobs:
|
|
gen-swagger:
|
|
name: Alerting Swagger spec generation cron job
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 2
|
|
- name: Set go version
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: '1.20.6'
|
|
- name: Build swagger
|
|
run: |
|
|
make -C pkg/services/ngalert/api/tooling post.json api.json
|
|
- name: Open Pull Request
|
|
uses: peter-evans/create-pull-request@v5
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
commit-message: "chore: update alerting swagger spec"
|
|
title: "Alerting: Update Swagger spec"
|
|
body: |
|
|
This is an automated pull request to update the alerting swagger spec.
|
|
Please review and merge.
|
|
branch: update-alerting-swagger-spec
|
|
delete-branch: true
|
|
labels: 'area/alerting,type/docs,no-backport,no-changelog'
|
|
team-reviewers: 'grafana/alerting-backend-product'
|
|
draft: false
|
|
|