-
Notifications
You must be signed in to change notification settings - Fork 13
38 lines (36 loc) · 1022 Bytes
/
enum-gen.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: "Enum Gen"
on:
workflow_dispatch: {}
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch all tags
run: git fetch --force --tags
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Install Task
uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Tests
env:
OPSLEVEL_API_TOKEN: ${{ secrets.OPSLEVEL_API_TOKEN }}
run: |-
task setup
task generate
- name: Ensure Changelog
run: |
git config user.name "OpsLevel Bots"
git config user.email "[email protected]"
git add enum.go
git commit -m "Regenerate enum.go"
git push origin HEAD:bot/enum-gen
gh pr create --title "Regenerate enum.go" --body "Regenerate enum.go"