Skip to content

chore: prepare release 2024-04-30 #16194

chore: prepare release 2024-04-30

chore: prepare release 2024-04-30 #16194

Workflow file for this run

name: Codegen
on:
pull_request:
types: [opened, synchronize, closed]
jobs:
notification:
runs-on: ubuntu-22.04
timeout-minutes: 10
if: (github.event.action == 'opened' || github.event.action == 'synchronize') && github.event.number
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
- name: Setup
uses: ./.github/actions/setup
with:
type: minimal
- name: Add notification comment
run: yarn workspace scripts upsertGenerationComment notification
env:
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}
PR_NUMBER: ${{ github.event.number }}
HEAD_BRANCH: ${{ github.head_ref }}
cleanup:
runs-on: ubuntu-22.04
timeout-minutes: 10
if: github.event.action == 'closed'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
- name: Setup
uses: ./.github/actions/setup
with:
type: minimal
- name: Add cleanup comment
run: yarn workspace scripts upsertGenerationComment cleanup
env:
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}
PR_NUMBER: ${{ github.event.number }}
- name: Clean previously generated branch
run: yarn workspace scripts cleanGeneratedBranch ${{ github.head_ref }}