@@ -53,35 +53,35 @@ jobs:
53
53
--body "This PR incorporates package(s) version and changelog update."
54
54
55
55
- name : Merge pull request
56
- if : ${{ github.event.inputs.automatic_mode == true }}
56
+ if : ${{ fromJSON( github.event.inputs.automatic_mode) == true }}
57
57
run : |
58
58
gh pr merge ${{ steps.create_release_candidate.outputs.created_branch }} \
59
59
--delete-branch
60
60
61
61
- name : Create tag
62
- if : ${{ github.event.inputs.automatic_mode == true }}
62
+ if : ${{ fromJSON( github.event.inputs.automatic_mode) == true }}
63
63
run : |
64
64
git checkout ${{ github.event.inputs.target_branch }}
65
65
git tag ${{ steps.create_release_candidate.outputs.version }}
66
66
git push origin ${{ steps.create_release_candidate.outputs.version }}
67
67
68
68
- 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}}
70
70
run : |
71
71
gh release create ${{ steps.create_release_candidate.outputs.version }} \
72
72
--title ${{ github.event.inputs.release_name }} \
73
73
--notes-from-tag \
74
74
--prerelease
75
75
76
76
- 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}}
78
78
run : |
79
79
gh release create ${{ steps.create_release_candidate.outputs.version }} \
80
80
--title ${{ github.event.inputs.release_name }} \
81
81
--notes-from-tag
82
82
83
83
- 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 }}
85
85
run : |
86
86
gh pr create \
87
87
--base ${{ env.MAIN_BRANCH }} \
@@ -90,13 +90,13 @@ jobs:
90
90
--body "This PR incorporates package(s) version and changelog update."
91
91
92
92
- 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 }}
94
94
uses : actions/checkout@v4
95
95
with :
96
96
ref : ${{ env.MAIN_BRANCH }}
97
97
98
98
- 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 }}
100
100
run : |
101
101
gh pr merge ${{ github.event.inputs.target_branch }} \
102
102
--delete-branch
0 commit comments