From d544fffb3ca152abc5628bc7e5cf3354b2baf9df Mon Sep 17 00:00:00 2001 From: krishnachaitanya Date: Wed, 20 Sep 2023 21:39:19 +0530 Subject: [PATCH] chore: fixed conditional step execution --- .github/workflows/build-pr-artifacts.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/build-pr-artifacts.yml b/.github/workflows/build-pr-artifacts.yml index 022afcd9f4..aa915dec5d 100644 --- a/.github/workflows/build-pr-artifacts.yml +++ b/.github/workflows/build-pr-artifacts.yml @@ -7,6 +7,10 @@ on: - reopened - synchronize +env: + type: dt + + jobs: generate-tag-names: runs-on: ubuntu-latest @@ -66,3 +70,17 @@ jobs: push_target: production secrets: DOCKERHUB_PROD_TOKEN: ${{ secrets.DOCKERHUB_PROD_TOKEN }} + + test-step: + name: test job + runs-on: ubuntu-latest + steps: + - name: test step one + if: ${{ env.type == 'dt' }} + run: | + echo "test echo one" + + - name: test step two + if: ${{ env.type }} == 'dt' + run: | + echo "test echo two"