Skip to content

Commit

Permalink
chore: fixed conditional step execution
Browse files Browse the repository at this point in the history
  • Loading branch information
krishna2020 committed Sep 20, 2023
1 parent 5fbddd1 commit d544fff
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build-pr-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- reopened
- synchronize

env:
type: dt


jobs:
generate-tag-names:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -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"

0 comments on commit d544fff

Please sign in to comment.