@@ -42,24 +42,26 @@ jobs:
42
42
file : |
43
43
"Properties/AssemblyInfo.cs", "VSDebugCoreLib/Properties/AssemblyInfo.cs"
44
44
version : ${{ env.Version }}
45
+ - name : Build extension
46
+ run : msbuild $env:SolutionPath /t:Rebuild
47
+ env :
48
+ DeployExtension : False
45
49
- name : Commit Version
50
+ env :
51
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46
52
run : |
47
53
git config user.name "release-bot"
48
54
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
49
57
git add ./Properties/AssemblyInfo.cs
50
58
git add ./VSDebugCoreLib/Properties/AssemblyInfo.cs
51
59
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
63
65
- name : Tag Release
64
66
run : |
65
67
git config user.name "release-extension"
0 commit comments