Skip to content

Commit c1c9c98

Browse files
committed
Add formatting
1 parent b554974 commit c1c9c98

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/release-repository.yaml

+12-12
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,17 @@ on:
55
workflow_dispatch:
66
inputs:
77
source_branch:
8-
description: "Source branch for the release"
8+
description: Source branch for the release
99
required: true
1010
target_branch:
11-
description: "Target branch for the release"
11+
description: Target branch for the release
1212
required: false
13-
default: "ros2"
13+
default: ros2
1414
version:
1515
description: New version (used for tag and package versioning).
1616
required: true
1717
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.
2019
`2.0.0-alpha`).
2120
required: true
2221
automatic_mode:
@@ -64,13 +63,15 @@ jobs:
6463
--merge --delete-branch
6564
6665
- 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 }}
6868
uses: actions/checkout@v4
6969
with:
7070
ref: ${{ github.event.inputs.target_branch }}
7171

7272
- 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 }}
7475
run: |
7576
gh pr create \
7677
--base ${{ github.event.inputs.target_branch }} \
@@ -79,14 +80,14 @@ jobs:
7980
--body "This PR incorporates package(s) version and changelog update."
8081
8182
- 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 }}
8385
run: |
8486
gh pr merge ${{ github.event.inputs.source_branch }} \
8587
--merge --delete-branch
8688
8789
- 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)
9091
== true}}
9192
run: |
9293
gh release create ${{ steps.catkin_release.outputs.version }} \
@@ -96,8 +97,7 @@ jobs:
9697
--prerelease
9798
9899
- 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)
101101
== false}}
102102
run: |
103103
gh release create ${{ steps.catkin_release.outputs.version }} \

0 commit comments

Comments
 (0)