Skip to content

Instantly share code, notes, and snippets.

@b1a9id
Last active April 19, 2021 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save b1a9id/3b9b31a82b9c1cec7dbb171c596f81df to your computer and use it in GitHub Desktop.
Save b1a9id/3b9b31a82b9c1cec7dbb171c596f81df to your computer and use it in GitHub Desktop.
workflow_dispatchの入力値バリデーション
steps:
- name: Check
if: ${{ github.event.inputs.environment != 'test1' && github.event.inputs.environment != 'test2'}}
run: |
echo "::error ${{ github.event.inputs.environment }} is invalid. environment must be 'test1' or 'test2'."
exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment