From ef9a33bfecf89209562a1e6a95f402ab358e2d09 Mon Sep 17 00:00:00 2001 From: Mou Date: Thu, 28 Mar 2024 07:15:20 +0200 Subject: [PATCH] Adjust conditional run of build workflow steps --- .github/workflows/biome-ci.yml | 2 +- .github/workflows/build.yml | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/biome-ci.yml b/.github/workflows/biome-ci.yml index 71f6370..2f92e2d 100644 --- a/.github/workflows/biome-ci.yml +++ b/.github/workflows/biome-ci.yml @@ -1,4 +1,4 @@ -name: Code quality +name: Code quality check on: push: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 52b6ae0..dcd30f4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build +name: Setup, build and Deploy on: workflow_run: @@ -17,12 +17,9 @@ jobs: on-code-quality-failure: runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'failure' }} - steps: - - run: echo 'Code quality workflow failed, skipping build' - build: runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - name: Checkout uses: actions/checkout@v4 @@ -60,6 +57,7 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} + if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - name: Deploy to GitHub Pages id: deployment