-
-
Save b1a9id/3b9b31a82b9c1cec7dbb171c596f81df to your computer and use it in GitHub Desktop.
workflow_dispatchの入力値バリデーション
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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