Skip to content

Commit 3132f06

Browse files
committed
Workflow to create first release
1 parent d6c5828 commit 3132f06

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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

0 commit comments

Comments
 (0)