Skip to content

Commit

Permalink
Adjust conditional run of build workflow steps
Browse files Browse the repository at this point in the history
  • Loading branch information
mmounirf committed Mar 28, 2024
1 parent b8a881f commit ef9a33b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/biome-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Code quality
name: Code quality check

on:
push:
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Setup, build and Deploy

on:
workflow_run:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ef9a33b

Please sign in to comment.