🎇 Sync Univer version #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🎇 Sync Univer version | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: The version to update to (like 0.1.16) | |
type: string | |
default: '' | |
required: true | |
jobs: | |
update: | |
if: inputs.version != '' | |
name: UpdateRepository | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: update version | |
run: | | |
cd submodules/univer | |
git fetch --all | |
git checkout v${{ inputs.version}} | |
- name: UpdateRepository | |
uses: technote-space/create-pr-action@v2 | |
with: | |
EXECUTE_COMMANDS: | | |
sed -i 's/"version": "[^"]*"/"version": "${{ inputs.version }}"/' package.json | |
COMMIT_MESSAGE: 'chore(release): sync univer to v${{ inputs.version }}' | |
COMMIT_NAME: GitHub Actions | |
PR_BRANCH_PREFIX: chore/ | |
PR_BRANCH_NAME: 'sync-univer-to-v${{ inputs.version }}' | |
PR_TITLE: 'chore(release): sync univer to v${{ inputs.version }}' |