From f32ef8c3d04d24f2aeacec41d89bf627d9221c89 Mon Sep 17 00:00:00 2001 From: Edgar Gomes Date: Thu, 4 Jul 2024 14:46:25 -0300 Subject: [PATCH] feat: DRY ref to main branch in CI (#12) --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6258063d..a8357f3e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,9 @@ on: branches: - main +env: + MAIN_BRANCH: ${{ 'refs/heads/main' }} + jobs: check_nix: name: Basic Check @@ -75,7 +78,7 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Publish images - if: github.ref == 'refs/heads/main' + if: github.ref == env.MAIN_BRANCH run: | nix run ./#publish-kardinal-manager-container nix run ./#publish-kardinal-cli-container