5
5
workflow_dispatch :
6
6
inputs :
7
7
source_branch :
8
- description : " Source branch for the release"
8
+ description : Source branch for the release
9
9
required : true
10
10
target_branch :
11
- description : " Target branch for the release"
11
+ description : Target branch for the release
12
12
required : false
13
- default : " ros2"
13
+ default : ros2
14
14
version :
15
15
description : New version (used for tag and package versioning).
16
16
required : true
17
17
release_name :
18
- description :
19
- Name of the release to be created. Version in the first place is recommended (e.g.
18
+ description : Name of the release to be created. Version in the first place is recommended (e.g.
20
19
` 2.0.0-alpha` ).
21
20
required : true
22
21
automatic_mode :
@@ -64,13 +63,15 @@ jobs:
64
63
--merge --delete-branch
65
64
66
65
- name : Checkout to target branch
67
- if : ${{ github.event.inputs.source_branch != github.event.inputs.target_branch && fromJSON(inputs.automatic_mode) == true }}
66
+ if : ${{ github.event.inputs.source_branch != github.event.inputs.target_branch && fromJSON(inputs.automatic_mode)
67
+ == true }}
68
68
uses : actions/checkout@v4
69
69
with :
70
70
ref : ${{ github.event.inputs.target_branch }}
71
71
72
72
- name : Create PR to target branch
73
- if : ${{ github.event.inputs.source_branch != github.event.inputs.target_branch && fromJSON(inputs.automatic_mode) == true }}
73
+ if : ${{ github.event.inputs.source_branch != github.event.inputs.target_branch && fromJSON(inputs.automatic_mode)
74
+ == true }}
74
75
run : |
75
76
gh pr create \
76
77
--base ${{ github.event.inputs.target_branch }} \
@@ -79,14 +80,14 @@ jobs:
79
80
--body "This PR incorporates package(s) version and changelog update."
80
81
81
82
- name : Merge PR to target branch
82
- if : ${{ github.event.inputs.source_branch != github.event.inputs.target_branch && fromJSON(inputs.automatic_mode) == true }}
83
+ if : ${{ github.event.inputs.source_branch != github.event.inputs.target_branch && fromJSON(inputs.automatic_mode)
84
+ == true }}
83
85
run : |
84
86
gh pr merge ${{ github.event.inputs.source_branch }} \
85
87
--merge --delete-branch
86
88
87
89
- name : Create prerelease
88
- if :
89
- ${{ fromJSON(github.event.inputs.automatic_mode) == true && fromJSON(github.event.inputs.prerelease)
90
+ if : ${{ fromJSON(github.event.inputs.automatic_mode) == true && fromJSON(github.event.inputs.prerelease)
90
91
== true}}
91
92
run : |
92
93
gh release create ${{ steps.catkin_release.outputs.version }} \
96
97
--prerelease
97
98
98
99
- name : Create release
99
- if :
100
- ${{ fromJSON(github.event.inputs.automatic_mode) == true && fromJSON(github.event.inputs.prerelease)
100
+ if : ${{ fromJSON(github.event.inputs.automatic_mode) == true && fromJSON(github.event.inputs.prerelease)
101
101
== false}}
102
102
run : |
103
103
gh release create ${{ steps.catkin_release.outputs.version }} \
0 commit comments