Skip to content

Commit

Permalink
chore(ci): add auto update version (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
hexf00 authored Jun 21, 2024
1 parent df8dc79 commit 68d8ec8
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/auto-update-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 🎇 Update Repository

on:
workflow_dispatch:
inputs:
version:
description: The version to update to (like 0.1.16)
type: string
default: ''
required: true

jobs:
update:
name: UpdateRepository
runs-on: arc-runner-set
steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: UpdateRepository
uses: technote-space/create-pr-action@v2
with:
EXECUTE_COMMANDS: |
npm version ${{ inputs.version }} --no-git-tag-version
cd univer-typedoc/submodules/univer
git checkout v${{ inputs.version}}
COMMIT_MESSAGE: 'chore(release): v${{ inputs.version }}'
COMMIT_NAME: GitHub Actions
PR_BRANCH_PREFIX: create-pr-action/
PR_BRANCH_NAME: 'update-repository-${PR_ID}'
PR_TITLE: 'chore: update repository'

0 comments on commit 68d8ec8

Please sign in to comment.