Skip to content

Commit 6efa3a0

Browse files
committed
fix: and another one
1 parent b3353ff commit 6efa3a0

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed
Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Create Release PR
22
on:
33
push:
4-
branches: [ release-test ]
4+
branches: [release-test]
55

66
jobs:
77
release:
@@ -20,6 +20,7 @@ jobs:
2020
- name: Semantic Release
2121
uses: cycjimmy/semantic-release-action@v4
2222
with:
23+
branch: release-test
2324
extra_plugins: |
2425
@semantic-release/commit-analyzer
2526
@semantic-release/release-notes-generator
@@ -28,21 +29,16 @@ jobs:
2829
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2930

3031
- name: Create Pull Request
31-
id: cpr
32-
uses: peter-evans/create-pull-request@v5
33-
with:
34-
title: 'chore: Create new release'
35-
base: release
36-
branch: release-pr
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 }}
4632
run: |
47-
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
48-
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
33+
echo "Checking differences between branches..."
34+
git diff release...release-test --name-only
35+
36+
# Create PR using gh cli
37+
gh pr create \
38+
--base release \
39+
--head release-test \
40+
--title "chore: Create new release" \
41+
--body "Automated PR from release-test to release" \
42+
|| echo "PR already exists or no changes to create PR"
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)