Skip to content

Commit

Permalink
Merge pull request #277 from alex-slynko/require-branch-only-for-full…
Browse files Browse the repository at this point in the history
…-push

Do not require branch if pushing only tags
  • Loading branch information
YoussB authored Apr 21, 2020
2 parents bc4978a + ba3e7d8 commit bfc02ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion assets/out
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ if [ -z "$uri" ]; then
exit 1
fi

if [ -z "$branch" ]; then
if [ -z "$branch" ] && [ "$only_tag" != "true" ]; then
echo "invalid payload (missing branch)"
exit 1
fi
Expand Down
1 change: 0 additions & 1 deletion test/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,6 @@ put_uri_with_only_tag() {
jq -n "{
source: {
uri: $(echo $1 | jq -R .),
branch: \"master\"
},
params: {
repository: $(echo $3 | jq -R .),
Expand Down

0 comments on commit bfc02ed

Please sign in to comment.