File tree 2 files changed +7
-3
lines changed 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -322,6 +322,9 @@ and the `rebase` parameter is not provided, the push will fail.
322
322
323
323
* `only_tag`: *Optional.* When set to 'true' push only the tags of a repo.
324
324
325
+ * `options`: *Optional.* When not null, add it to the
326
+ [`--push-options`](https://git-scm.com/docs/git-push#Documentation/git-push.txt---push-optionltoptiongt).
327
+
325
328
* `tag_prefix`: *Optional.* If specified, the tag read from the file will be
326
329
prepended with this string. This is useful for adding `v` in front of
327
330
version numbers.
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ merge=$(jq -r '.params.merge // false' <<< "$payload")
36
36
returning=$( jq -r ' .params.returning // "merged"' <<< " $payload" )
37
37
force=$( jq -r ' .params.force // false' <<< " $payload" )
38
38
only_tag=$( jq -r ' .params.only_tag // false' <<< " $payload" )
39
+ options=$( jq -r ' .params.options // ""' <<< " $payload" )
39
40
annotation_file=$( jq -r ' .params.annotate // ""' <<< " $payload" )
40
41
notes_file=$( jq -r ' .params.notes // ""' <<< " $payload" )
41
42
override_branch=$( jq -r ' .params.branch // ""' <<< " $payload" )
@@ -105,17 +106,17 @@ tag() {
105
106
}
106
107
107
108
push_src_and_tags () {
108
- git push --tags push-target HEAD:$refs_prefix /$branch $forceflag
109
+ git push ${options : +--push-options= ${options} } --tags push-target HEAD:$refs_prefix /$branch $forceflag
109
110
}
110
111
111
112
push_tags () {
112
- git push --tags push-target $forceflag
113
+ git push ${options : +--push-options= ${options} } --tags push-target $forceflag
113
114
}
114
115
115
116
add_and_push_notes () {
116
117
if [ -n " $notes_file " ]; then
117
118
git notes add -F " ../${notes_file} "
118
- git push push-target refs/notes/*
119
+ git push ${options : +--push-options= ${options} } push-target refs/notes/*
119
120
fi
120
121
}
121
122
You can’t perform that action at this time.
0 commit comments