19
19
required : true
20
20
type : boolean
21
21
default : false
22
+ tagsOnly :
23
+ description : ' Only create tags'
24
+ required : true
25
+ type : boolean
26
+ default : false
22
27
customParameters :
23
28
description : ' Custom cli arguments'
24
29
required : false
42
47
UNITY_VERSION : ${{ inputs.unityVersion }}
43
48
CREATE_TAGS : ${{ inputs.createTags }}
44
49
URP_BRANCH : ${{ inputs.urp }}
50
+ TAGS_ONLY : ${{ inputs.tagsOnly }}
45
51
CUSTOM_PARAMETERS : ${{ inputs.customParameters }}
46
52
47
53
- uses : actions/checkout@v3
93
99
echo "upgrade_name -> ${{ steps.upgrade_name.outputs.NAME }}"
94
100
95
101
- name : Build project
102
+ if : ${{ !inputs.tagsOnly }}
96
103
uses : JohannesDeml/unity-builder@no-quit-parameter
97
104
env :
98
105
UNITY_LICENSE : ${{ secrets.UNITY_LICENSE }}
@@ -105,20 +112,19 @@ jobs:
105
112
allowDirtyBuild : true
106
113
107
114
- name : Delete build folder with elevated rights
115
+ if : ${{ !inputs.tagsOnly }}
108
116
run : sudo rm -rf ./build
109
117
110
- - name : Log git status
111
- run : git status
112
-
113
118
- name : Set git user
114
119
run : |
120
+ git status
115
121
git config --global user.email "[email protected] "
116
122
git config --global user.name "$GIT_USER"
117
123
env :
118
124
GIT_USER : ${{ github.actor }}
119
125
120
-
121
126
- name : Render template
127
+ if : ${{ !inputs.tagsOnly }}
122
128
id : template
123
129
124
130
with :
@@ -127,6 +133,7 @@ jobs:
127
133
unityversion: ${{ steps.upgrade_name.outputs.NAME }}
128
134
129
135
- name : Create Pull Request
136
+ if : ${{ !inputs.tagsOnly }}
130
137
uses : peter-evans/create-pull-request@v4
131
138
with :
132
139
token : ${{ secrets.PR_GITHUB_TOKEN }}
@@ -137,6 +144,7 @@ jobs:
137
144
body : ${{ steps.template.outputs.result }}
138
145
139
146
- name : Add tags
147
+ if : ${{ inputs.createTags || inputs.tagsOnly }}
140
148
run : |
141
149
if [[ "$URP_BRANCH" == "true" ]]
142
150
then
0 commit comments