Skip to content

Commit

Permalink
test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Nov 13, 2023
1 parent d8aa7d5 commit e283d6c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test ENV NAME
on:
push:
branches:
- '*'
- 'hide_env_names'
paths:
- 'api/**'
- 'client/**'
Expand All @@ -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"
Expand All @@ -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_

0 comments on commit e283d6c

Please sign in to comment.