From 417600f86ffecc8e22e253da032beda6bca89a71 Mon Sep 17 00:00:00 2001 From: Brayan batista zuniga Date: Tue, 27 Feb 2024 15:52:26 -0500 Subject: [PATCH] fix: adding condition in mix build steps --- .github/workflows/template-main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/template-main.yml b/.github/workflows/template-main.yml index 480c8b9..a084837 100644 --- a/.github/workflows/template-main.yml +++ b/.github/workflows/template-main.yml @@ -77,14 +77,14 @@ jobs: echo "RELEASE_VERSION=$(git tag | sort --version-sort | tail -n1 | tr -d 'v')" >> $GITHUB_ENV - name: Install Mix dependencies - if: ${{ ( env.PUBLISH_ARTIFACT == 'true' ) }} + if: ${{ ( env.PUBLISH_ARTIFACT == 'true' ) || ( env.COMMIT_PUSH == 'true' ) }} run: mix deps.get && mix deps.compile working-directory: Elixir/Konex env: SKIP_GIT_HOOKS: 'true' - name: Run Mix tests - if: ${{ ( env.PUBLISH_ARTIFACT == 'true' ) }} + if: ${{ ( env.PUBLISH_ARTIFACT == 'true' ) || ( env.COMMIT_PUSH == 'true' ) }} run: mix test working-directory: Elixir/Konex