File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Create First Release
2+
3+ on :
4+ pull_request :
5+ types : [closed]
6+
7+ jobs :
8+ createReleaseBranch :
9+ if : github.event.pull_request.merged == true && github.event.pull_request.title == 'Cleanup: Remove post-create GitHub Action'
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout repository
13+ uses : actions/checkout@v3
14+ with :
15+ fetch-depth : 0 # Ensure full history is fetched for branch operations
16+
17+ - name : Set up Git
18+ run : |
19+ git config --global user.name "${{ github.actor }}"
20+ git config --global user.email "${{ github.actor }}@users.noreply.github.com"
21+
22+ - name : Create release branch
23+ run : |
24+ git checkout main
25+ git pull origin main
26+ git checkout -b main#release#v0.0.1
27+ git push origin main#release#v0.0.1
You can’t perform that action at this time.
0 commit comments