From 6a7bc55f5e611a71fb84db9553e968fbf258efa3 Mon Sep 17 00:00:00 2001 From: Darryl Yeo Date: Thu, 8 Jun 2023 22:54:57 -0700 Subject: [PATCH] Add "Generate" workflow --- .github/workflows/generate.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/generate.yml diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml new file mode 100644 index 0000000..d4d2a6b --- /dev/null +++ b/.github/workflows/generate.yml @@ -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: + node-version: ${{ matrix.node }} + - 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" \ No newline at end of file