You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert

7
+
<!-- -->
<dd>2. Ensure your action executes a checkout step prior to using this action.</dd>
34
34
<dd>3. Use the outputs from this action as desired. For example, you might use it to update the version of an npm package:</dd>
35
-
<dd><pre>
36
-
npm version $NEW_VERSION</pre></dd>
35
+
<dd>
36
+
<pre>npm version ${{ steps.gitops-autover.outputs.new-version }}</pre>
37
+
</dd>
37
38
<dd>4. Tag the repo with the new version at some point in the workflow.
38
39
<dt>Team Setup</dt>
39
-
<dd>5. Ensure the iteration team adheres to the branch naming scheme defined below. Here's an example workflow.</dd>
40
+
<dd>5. Ensure the iteration team adheres to the branch naming scheme defined below. Here's an example workflow. Bonus points for integrating branch management into your issue tracking system.</dd>
40
41
<dd><pre>
41
42
git checkout -b fix/not-a-feature
42
43
git commit --allow-empty -m "This was a bug and not a feature after all..."
Below is a valid workflow utilizing this action. If you wanted to extend it to do something like update a 'package.json' version, for example, you would simply create a step that runs: `npm version $NEW_VERSION`.
59
60
@@ -100,6 +101,56 @@ _minor:_
100
101
101
102
Additionally, this repo uses its own action for versioning, so feel free to investigate that workflow for another example.
# Then bolt on extras such as slack notify or github release actions as needed.
153
+
103
154
## Discipline Dependency
104
155
105
156
### Branch Naming Scheme
@@ -123,9 +174,13 @@ This action is _most_ suitable for git projects with the following operational d
123
174
124
175
- Each merge into main|master is intended to produce an artifact, following the "everything is potentially releasabe" approach.
125
176
126
-
This action is _not_ suitable for projects requiring pre-release, beta, etc., type fields. Such projects should depend upon their own language native tooling.
127
-
128
-
This action is _not_ suitable for projects requiring version numbers to be planned and orchestrated ahead of time.
177
+
This action is _not_ suitable for projects requiring:
178
+
- pre-release, beta, etc., type fields. Such projects should depend upon their own language native tooling.
179
+
- specific version numbers to be planned and orchestrated ahead of time (usually marketing efforts).
180
+
- Exception: Major releases. These can be actioned on demand as outlined below.
181
+
- rebase merges. Reminder: this action _depends_ on merge commit messages.
echo -e "[$(${tsCmd})] \e[01;31mERROR\e[00m: You must source this script when specifying an environment variable! Eg: '. ./${0##*/} -e foo_ver'\n"
169
+
echo -e "[$(${tsCmd})] \e[01;31mERROR\e[00m: 520 - You must source this script when specifying an environment variable! Eg: '. ./${0##*/} -e foo_ver'\n"
170
+
echo"::error title=Usage Error::ERROR 520 - You must source this script when specifying an environment variable! Eg: '. ./foo.sh -e bar_ver'"
168
171
exit 1
169
172
fi
170
173
fi
@@ -205,12 +208,8 @@ if [[ -n $arg_f ]]; then
205
208
else
206
209
if [[ -z$incrementMajor&&-z$count_feature&&-z$count_enhancement&&-z$count_fix&&-z$count_bugfix&&-z$count_hotfix&&-z$count_ops ]];then
207
210
echo -e "\e[01;31mERROR\e[00m: 599 - No feature, enhancement, fix, bugfix, hotfix, or ops branches detected!"
208
-
exit 1 # For GH Actions
209
-
if [[ "$sourced"== 0 ]];then
210
-
exit 1
211
-
else
212
-
return 1
213
-
fi
211
+
echo"::error title=No Valid Merge Detected::ERROR 599 - No feature, enhancement, fix, bugfix, hotfix, or ops branches detected!"
0 commit comments