diff --git a/.github/workflows/test_env.yml b/.github/workflows/test_env.yml index 90789375e8..5d668c8407 100644 --- a/.github/workflows/test_env.yml +++ b/.github/workflows/test_env.yml @@ -3,7 +3,7 @@ name: Test ENV NAME on: push: branches: - - '*' + - 'hide_env_names' paths: - 'api/**' - 'client/**' @@ -27,7 +27,7 @@ jobs: if [[ "$BRANCH_NAME" == "main" || "$BRANCH_NAME" == "dev" || "$BRANCH_NAME" == "staging" || "$BRANCH_NAME" == "test" ]]; then ENV_NAME_VALUE=$BRANCH_NAME else - ENV_NAME_VALUE="ENV_NAME_${GITHUB_REF_SLUG^^}" + ENV_NAME_VALUE="${GITHUB_REF_SLUG^^}" fi echo "::set-output name=env_name_value::$ENV_NAME_VALUE" @@ -38,4 +38,6 @@ jobs: - name: Print ENV_NAME env: ENV_NAME: ${{ needs.setup.outputs.env_name_value }} - run: echo "ENV_NAME is $ENV_NAME" + ENV_NAME_2: ${{ secrets[env.ENV_NAME_VALUE] }} + run: | + printenv | grep ENV_