Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eval examples should use single quotes ' #21

Open
pvinis opened this issue Jun 25, 2019 · 0 comments
Open

eval examples should use single quotes ' #21

pvinis opened this issue Jun 25, 2019 · 0 comments

Comments

@pvinis
Copy link

pvinis commented Jun 25, 2019

examples like

$ travis-conditions eval "branch = foo" --data '{"branch": "foo"}' 

should be like

$ travis-conditions eval 'branch = foo' --data '{"branch": "foo"}'

The reason is that I have for example this:

travis-conditions eval "branch =~ /^release\/(alpha|beta|prod)$/ AND commit_message =~ /\[.*JS.*\]/ AND commit_message !~ /\[.*IOS.*\]/" --data '{"branch": "release/alpha"}'

and as you can see there is !~ in there. This causes the shell to look in the history, resulting in a event not found error.

Using single quotes instead works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant