Skip to content

(call) Post-release branch with updated examples #2

(call) Post-release branch with updated examples

(call) Post-release branch with updated examples #2

name: (call) Post-release branch with updated examples
on:
workflow_dispatch:
inputs:
ref:
description: 'git ref (main)'
required: true
type: string
default: main
workflow_call:
inputs:
ref:
required: true
type: string
default: main
jobs:
post-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- id: latest
uses: pozetroninc/github-action-get-latest-release@master
with:
owner: facebook
repo: lexical
excludes: draft
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- uses: actions/setup-node@v4
with:
node-version: 22.x
- run: |
npm i && npm run update-examples
- uses: stefanzweifel/git-auto-commit-action@v6
with:
commit_message: 'Update examples for ${{ steps.latest.outputs.release }}'
commit_user_name: 'Lexical GitHub Actions Bot'
branch: post-release-${{ steps.latest.outputs.release }}
push_options: '--force'