From 441a8f3ade75666b58750e2a03962101d51f9240 Mon Sep 17 00:00:00 2001 From: Rishav Dhar <19497993+RDhar@users.noreply.github.com> Date: Tue, 16 Jul 2024 19:54:30 +0100 Subject: [PATCH] add github env deployment Signed-off-by: Rishav Dhar <19497993+RDhar@users.noreply.github.com> --- .github/workflows/tf_sample.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/tf_sample.yaml b/.github/workflows/tf_sample.yaml index 2cf758ea..39083352 100644 --- a/.github/workflows/tf_sample.yaml +++ b/.github/workflows/tf_sample.yaml @@ -27,6 +27,8 @@ jobs: matrix: context: [dev, stg] + environment: ${{ format('{0}', github.event.pull_request.merged && matrix.context || '') }} + steps: - name: Checkout repository uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 @@ -58,6 +60,8 @@ jobs: matrix: context: [dev, stg] + environment: ${{ format('{0}', github.event.pull_request.merged && matrix.context || '') }} + steps: - name: Checkout repository uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7