Skip to content

Commit da1148f

Browse files
committed
update
1 parent 85ab8ac commit da1148f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/update_version.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
change:
1010
description: "提交内容"
1111
type: string
12+
pr:
13+
description: "需要合并提交"
14+
type: boolean
1215

1316
jobs:
1417
jobA:
@@ -26,3 +29,11 @@ jobs:
2629
git add .
2730
git commit -m ${{ github.event.inputs.change }}
2831
git push
32+
jobB:
33+
name: createPr
34+
runs-on: ubuntu-latest
35+
if: github.event.inputs.pr && github.event.inputs.tag != ''
36+
steps:
37+
- uses: actions/checkout@v2
38+
- run: |
39+
gh pr create -B main --title 'Merge release${{ github.event.inputs.tag }} into main' --body 'Created by Github action'

0 commit comments

Comments
 (0)