Skip to content

Commit 736698c

Browse files
committed
Fix release-bot
1 parent 94261ec commit 736698c

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,26 @@ jobs:
4242
file: |
4343
"Properties/AssemblyInfo.cs", "VSDebugCoreLib/Properties/AssemblyInfo.cs"
4444
version: ${{ env.Version }}
45+
- name: Build extension
46+
run: msbuild $env:SolutionPath /t:Rebuild
47+
env:
48+
DeployExtension: False
4549
- name: Commit Version
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4652
run: |
4753
git config user.name "release-bot"
4854
git config user.email "[email protected]"
55+
TEMP_MERGE_BRANCH="temp-branch_${{ github.run_id }}-${{ github.run_attempt }}"
56+
git checkout -b $TEMP_MERGE_BRANCH
4957
git add ./Properties/AssemblyInfo.cs
5058
git add ./VSDebugCoreLib/Properties/AssemblyInfo.cs
5159
git add ./source.extension.vsixmanifest
52-
- name: Commit and Push to master
53-
uses: fabriziocacicia/[email protected]
54-
env:
55-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56-
with:
57-
temp_branch_prefix: push-action/
58-
commit_message: "VSDebugPro ${{ env.Version }}"
59-
- name: Build extension
60-
run: msbuild $env:SolutionPath /t:Rebuild
61-
env:
62-
DeployExtension: False
60+
COMMIT_MESSAGE="VSDebugPro ${{ env.Version }}"
61+
git commit -m $COMMIT_MESSAGE
62+
git push -u origin $TEMP_MERGE_BRANCH
63+
gh pr create --base ${{ github.ref_name }} --head $TEMP_MERGE_BRANCH --title $COMMIT_MESSAGE --body "Automated pull request by release-bot"
64+
gh pr merge --auto --delete-branch --squash
6365
- name: Tag Release
6466
run: |
6567
git config user.name "release-extension"

0 commit comments

Comments
 (0)