File tree 1 file changed +14
-18
lines changed 1 file changed +14
-18
lines changed Original file line number Diff line number Diff line change 1
1
name : Create Release PR
2
2
on :
3
3
push :
4
- branches : [ release-test ]
4
+ branches : [release-test]
5
5
6
6
jobs :
7
7
release :
20
20
- name : Semantic Release
21
21
uses : cycjimmy/semantic-release-action@v4
22
22
with :
23
+ branch : release-test
23
24
extra_plugins : |
24
25
@semantic-release/commit-analyzer
25
26
@semantic-release/release-notes-generator
@@ -28,21 +29,16 @@ jobs:
28
29
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29
30
30
31
- 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 }}
46
32
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 }}
You can’t perform that action at this time.
0 commit comments