ローカルでできるであろう\ではできない。
run > を使う
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
- name: Convert Environment Identifier env: ENVIRONMENT_NAME: ${ ENV} run: >; if [ "${ENVIRONMENT_NAME}" = 'development' ]; then echo "::set-output name=AWS_ENVIRONMENT::dev" echo "Converted: develop:dev"; elif [ "${ENVIRONMENT_NAME}" = 'staging' ]; then echo "::set-output name=AWS_ENVIRONMENT::stg" echo "Converted: release:stg"; elif [ "${ENVIRONMENT_NAME}" = 'production' ]; then echo "::set-output name=AWS_ENVIRONMENT::prd" echo "Converted: main:prd"; else exit 1; fi id: extract_aws_environment |