Skip to content

Commit 05a92c1

Browse files
authored
Update Go Genreate workflow (#29)
1 parent f670998 commit 05a92c1

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
name: Auto Commit (Go)
1+
name: Go Generate
22

33
on:
44
workflow_dispatch:
5+
schedule:
6+
- cron: 23 3 * * 1 # Weekly on Monday
57
push:
68
branches:
79
- main
@@ -14,16 +16,12 @@ permissions: {}
1416

1517
jobs:
1618
go-generate:
17-
uses: typisttech/.github/.github/workflows/create-auto-merged-pull-request-go.yml@v1
19+
uses: typisttech/.github/.github/workflows/create-auto-merged-pull-request-go.yml@v2
1820
permissions:
1921
contents: write
2022
pull-requests: write
2123
with:
2224
command: go generate ./...
23-
branch: "bot/go-generate/${{ github.ref_name }}"
24-
labels: |
25-
bot
26-
go-generate
27-
secrets:
28-
pr-write-pat-token: ${{ secrets.PR_WRITE_PAT_TOKEN }}
29-
token: ${{ secrets.GITHUB_TOKEN }}
25+
branch: tastendruck/go-generate/${{ github.ref_name }}
26+
labels: go-generate
27+
secrets: inherit

0 commit comments

Comments
 (0)