From 23a0a8e6fe5fce54e7d3e47f7b27b8f9d04c0977 Mon Sep 17 00:00:00 2001 From: Snoweuph Date: Sun, 3 Mar 2024 17:08:28 +0100 Subject: [PATCH] Fix Workflow yaml --- .gitea/workflows/release.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index f815472..d6f07af 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -32,16 +32,16 @@ jobs: build_matrix: runs-on: 'ubuntu-latest' - if: success('build_act') + if: ${{ always() && contains(join(needs.*.result, ','), 'success') }} + needs: [build_act] strategy: matrix: - name: - - php + name: [php] include: - name: PHP builds if: matrix.name == 'php' matrix: - versions: [7.4, 8.0, 8.1, 8.2] + version: [7.4, 8.0, 8.1, 8.2] steps: - name: Install Docker run: curl -fsSL https://get.docker.com | sh @@ -55,13 +55,13 @@ jobs: registry: git.euph.dev username: ${{ secrets.DEPLOY_USER }} password: ${{ secrets.DEPLOY_SECRET }} - - name: Build and push ${{ matrix.name}}:${{ matrix.versions }} + - name: Build and push ${{ matrix.name }}:${{ matrix.version }} uses: 'https://git.euph.dev/actions/docker-build-push@v5' with: context: "{{defaultContext}}:images/actions/${{ matrix.name }}" push: true tags: | - git.euph.dev/actions/runner-${{ matrix.name }}-${{ matrix.versions }}:latest + git.euph.dev/actions/runner-${{ matrix.name }}-${{ matrix.version }}:latest env: - PACKAGE_VERSION: ${{ matrix.versions }} + PACKAGE_VERSION: ${{ matrix.version }}