Skip to content

Commit

Permalink
Add "Generate" workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
darrylyeo committed Jun 9, 2023
1 parent c44cd88 commit 1877c9f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Generate
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'

jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-node@v3
with:
go-version: "1.19.x"
- run: git submodule update --init --recursive --remote
- run: npm run generate
- uses: peter-evans/create-pull-request@v5
with:
commit-message: "chore: update submodules and npm run generate"
branch: generate
title: "Changes by ${{ github.workflow }} workflow"
body: "Automated changes by [${{ github.workflow }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) workflow run"

0 comments on commit 1877c9f

Please sign in to comment.