Skip to content

Commit d4568ce

Browse files
committed
environment.name cannot use the env context
1 parent 96283ab commit d4568ce

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/test-deploy-publish.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ on:
77
paths-ignore:
88
- 'terraform/**'
99

10-
env:
11-
ENV_NAME: ${{ startsWith(github.ref, 'refs/tags/') && 'prod' || 'dev' }}
12-
1310
concurrency:
1411
group: ${{ github.workflow }}-${{ github.ref }}
1512
cancel-in-progress: false
@@ -57,7 +54,7 @@ jobs:
5754
needs: [ 'tests', 'lint' ]
5855
if: github.ref_name == 'main' || startsWith(github.ref, 'refs/tags/')
5956
environment:
60-
name: ${{ env.ENV_NAME }}
57+
name: ${{ startsWith(github.ref, 'refs/tags/') && 'prod' || 'dev' }}
6158
runs-on: ubuntu-latest
6259
concurrency:
6360
group: deploy-${{ github.ref }}-${{ matrix.region }}

0 commit comments

Comments
 (0)