Skip to content

Commit 210662a

Browse files
authored
Ros2 handle boolean args (#43)
* Add test * Restore original code * Apply fromJSON macro
1 parent 7e1b04f commit 210662a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/release-repository.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -53,35 +53,35 @@ jobs:
5353
--body "This PR incorporates package(s) version and changelog update."
5454
5555
- name: Merge pull request
56-
if: ${{ github.event.inputs.automatic_mode == true }}
56+
if: ${{ fromJSON(github.event.inputs.automatic_mode) == true }}
5757
run: |
5858
gh pr merge ${{ steps.create_release_candidate.outputs.created_branch }} \
5959
--delete-branch
6060
6161
- name: Create tag
62-
if: ${{ github.event.inputs.automatic_mode == true }}
62+
if: ${{ fromJSON(github.event.inputs.automatic_mode) == true }}
6363
run: |
6464
git checkout ${{ github.event.inputs.target_branch }}
6565
git tag ${{ steps.create_release_candidate.outputs.version }}
6666
git push origin ${{ steps.create_release_candidate.outputs.version }}
6767
6868
- name: Create prerelease
69-
if: ${{ github.event.inputs.automatic_mode == true && github.event.inputs.prerelease == true}}
69+
if: ${{ fromJSON(github.event.inputs.automatic_mode) == true && fromJSON(github.event.inputs.prerelease) == true}}
7070
run: |
7171
gh release create ${{ steps.create_release_candidate.outputs.version }} \
7272
--title ${{ github.event.inputs.release_name }} \
7373
--notes-from-tag \
7474
--prerelease
7575
7676
- name: Create release
77-
if: ${{ github.event.inputs.automatic_mode == true && github.event.inputs.prerelease == false}}
77+
if: ${{ fromJSON(github.event.inputs.automatic_mode) == true && fromJSON(github.event.inputs.prerelease) == false}}
7878
run: |
7979
gh release create ${{ steps.create_release_candidate.outputs.version }} \
8080
--title ${{ github.event.inputs.release_name }} \
8181
--notes-from-tag
8282
8383
- name: Create pull request to main branch
84-
if: ${{ github.event.inputs.target_branch != env.MAIN_BRANCH && github.event.inputs.automatic_mode == true }}
84+
if: ${{ github.event.inputs.target_branch != env.MAIN_BRANCH && fromJSON(github.event.inputs.automatic_mode) == true }}
8585
run: |
8686
gh pr create \
8787
--base ${{ env.MAIN_BRANCH }} \
@@ -90,13 +90,13 @@ jobs:
9090
--body "This PR incorporates package(s) version and changelog update."
9191
9292
- name: Checkout to main
93-
if: ${{ github.event.inputs.target_branch != env.MAIN_BRANCH && github.event.inputs.automatic_mode == true }}
93+
if: ${{ github.event.inputs.target_branch != env.MAIN_BRANCH && fromJSON(github.event.inputs.automatic_mode) == true }}
9494
uses: actions/checkout@v4
9595
with:
9696
ref: ${{ env.MAIN_BRANCH }}
9797

9898
- name: Merge pull request
99-
if: ${{ github.event.inputs.target_branch != env.MAIN_BRANCH && github.event.inputs.automatic_mode == true }}
99+
if: ${{ github.event.inputs.target_branch != env.MAIN_BRANCH && fromJSON(github.event.inputs.automatic_mode) == true }}
100100
run: |
101101
gh pr merge ${{ github.event.inputs.target_branch }} \
102102
--delete-branch

0 commit comments

Comments
 (0)