From 84d20128752c5bdb6be91bf457b2cff3124228e9 Mon Sep 17 00:00:00 2001 From: v4ltages Date: Thu, 30 Apr 2026 16:57:14 +0300 Subject: [PATCH] main fix --- .github/workflows/main.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 54eb60e..9a66be7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,21 +13,18 @@ on: default: teaser-2026 type: string -env: - REF_NAME: ${{ github.event.inputs.ref || github.ref_name }} - jobs: build_teaser: - if: ${{ env.REF_NAME == 'teaser-2026' }} + if: ${{ (github.event.inputs.ref || github.ref_name) == 'teaser-2026' }} uses: ./.github/workflows/build.yml with: - ref: ${{ env.REF_NAME }} + ref: ${{ github.event.inputs.ref || github.ref_name }} runner: prox-1 secrets: USER_AUTH: ${{ secrets.USER_AUTH }} deploy_teaser: - if: ${{ env.REF_NAME == 'teaser-2026' }} + if: ${{ (github.event.inputs.ref || github.ref_name) == 'teaser-2026' }} needs: build_teaser uses: ./.github/workflows/deploy.yml with: @@ -36,16 +33,16 @@ jobs: USER_AUTH: ${{ secrets.USER_AUTH }} build_dev: - if: ${{ env.REF_NAME == 'development' }} + if: ${{ (github.event.inputs.ref || github.ref_name) == 'development' }} uses: ./.github/workflows/build.yml with: - ref: ${{ env.REF_NAME }} + ref: ${{ github.event.inputs.ref || github.ref_name }} runner: prox-2 secrets: USER_AUTH: ${{ secrets.USER_AUTH }} deploy_dev: - if: ${{ env.REF_NAME == 'development' }} + if: ${{ (github.event.inputs.ref || github.ref_name) == 'development' }} needs: build_dev uses: ./.github/workflows/deploy.yml with: