Skip to content

Commit b3353ff

Browse files
committed
fix: trying new create PR instructions
1 parent f2444be commit b3353ff

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

.github/workflows/create-release-pr.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,39 @@ jobs:
1010
- uses: actions/checkout@v3
1111
with:
1212
fetch-depth: 0
13+
ref: release-test
14+
15+
- name: Fetch release branch
16+
run: |
17+
git fetch origin release:release
18+
git status
1319
1420
- name: Semantic Release
1521
uses: cycjimmy/semantic-release-action@v4
1622
with:
17-
branches: |
18-
['release-test']
23+
extra_plugins: |
24+
@semantic-release/commit-analyzer
25+
@semantic-release/release-notes-generator
26+
@semantic-release/github
1927
env:
2028
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2129

2230
- name: Create Pull Request
31+
id: cpr
2332
uses: peter-evans/create-pull-request@v5
2433
with:
2534
title: 'chore: Create new release'
2635
base: release
2736
branch: release-pr
28-
body: 'Automated PR from dev to release'
37+
delete-branch: true
38+
body: |
39+
Automated PR from release-test to release
40+
41+
Changes included in this PR:
42+
${{ github.event.head_commit.message }}
43+
44+
- name: Check outputs
45+
if: ${{ steps.cpr.outputs.pull-request-number }}
46+
run: |
47+
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
48+
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"

.releaserc.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)