Skip to content

Instantly share code, notes, and snippets.

@tmtk75
Created September 16, 2014 10:16
Show Gist options
  • Select an option

  • Save tmtk75/cd81f16424560cc5badb to your computer and use it in GitHub Desktop.

Select an option

Save tmtk75/cd81f16424560cc5badb to your computer and use it in GitHub Desktop.
case "refs/tags/v0.1.0" in
refs/heads/production|refs/tags/v[0-9]\.*)
echo "OK"
;;
*)
echo "NG"
;;
esac
@tmtk75

tmtk75 commented Sep 16, 2014

Copy link
Copy Markdown
Author

This shows "NG" if I replaced v0.1.0 with va.1.0.
I think this pattern works well as my expectation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment