cobraz/pubsub-http-handler

View on GitHub
.github/workflows/weekly-scheduled-jobs.yml

Summary

Maintainability
Test Coverage
name: Weekly jobs
on:
  workflow_dispatch:
  schedule:
    # Runs every Monday at 12
    - cron: '0 12 * * 1'

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4

      - name: Setup Node
        uses: actions/setup-node@v3
        with:
          node-version: lts/*
          cache: yarn

      - run: yarn install

      - name: Run typegen
        run: yarn run generate:docs

      - name: Create Pull Request
        uses: peter-evans/create-pull-request@v5
        with:
          branch: update-documentation
          delete-branch: true
          commit-message: 'chore(docs): run typegen'
          title: 'chore(docs): run typegen'
          body: 'This is automatically created by weekly scheduled jobs.'