Skip to content

fix(specs): Change trigger input for task update #10238

fix(specs): Change trigger input for task update

fix(specs): Change trigger input for task update #10238

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 }}