From 1166830177bb172a7fcb604c7ab56c416fb3921b Mon Sep 17 00:00:00 2001 From: kennyd3d Date: Wed, 4 Sep 2024 16:02:21 -0700 Subject: [PATCH] fix --- .github/workflows/dev.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 38bfa99..0bf19e6 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -18,8 +18,6 @@ env: jobs: build_test_and_deploy_dev: runs-on: ubuntu-latest - env: - PUSHED_DEV: ${{ github.event_name == 'push' && github.ref == 'refs/heads/dev' }} steps: - name: Checkout Code uses: actions/checkout@v4 @@ -54,12 +52,12 @@ jobs: kennyd3d/${{ env.ARTIFACT_NAME }}:dev - name: Push Docker Image if merged - if: env.PUSHED_DEV + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/dev' }} run: | docker push ${{ env.IMAGE_DEV }} - name: Deploy to Dev - if: env.PUSHED_DEV + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/dev' }} run: | echo "Pretending to deploy to k8" echo "## Successfully deployed ${{ env.IMAGE_DEV }} to Dev ✅" >> $GITHUB_STEP_SUMMARY