2023-07-20 14:31:20 -05:00
|
|
|
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
|
2023-09-05 03:10:10 -05:00
|
|
|
uses: actions/checkout@v4
|
2023-07-20 14:31:20 -05:00
|
|
|
with:
|
|
|
|
fetch-depth: 2
|
|
|
|
- name: Set go version
|
|
|
|
uses: actions/setup-go@v4
|
|
|
|
with:
|
2024-03-05 14:24:34 -06:00
|
|
|
go-version: '1.21.8'
|
2023-07-20 14:31:20 -05:00
|
|
|
- name: Build swagger
|
|
|
|
run: |
|
|
|
|
make -C pkg/services/ngalert/api/tooling post.json api.json
|
|
|
|
- name: Open Pull Request
|
2023-08-17 04:10:40 -05:00
|
|
|
uses: peter-evans/create-pull-request@v5
|
2023-07-20 14:31:20 -05:00
|
|
|
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
|
2023-11-28 08:03:32 -06:00
|
|
|
labels: 'area/alerting,type/docs,no-changelog'
|
2023-07-20 14:31:20 -05:00
|
|
|
team-reviewers: 'grafana/alerting-backend-product'
|
|
|
|
draft: false
|
|
|
|
|