[workflows] Simplify conditional checks in CI workflow

This commit is contained in:
Nikilite
2025-12-16 00:41:29 +01:00
committed by GitHub
parent 79e55eb8f1
commit 3ad58ee19f

View File

@@ -48,10 +48,7 @@ jobs:
name: Build and Test
runs-on: ${{ matrix.os }}
needs: check-readme-only
if: >
needs.check-readme-only.outputs.only_readme == 'false' &&
(github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request' && github.actor != '0xNikilite'))
if: needs.check-readme-only.outputs.only_readme == 'false'
strategy:
fail-fast: false
matrix:
@@ -116,10 +113,7 @@ jobs:
name: Code Coverage
runs-on: ubuntu-latest
needs: [check-readme-only, build]
if: >
needs.check-readme-only.outputs.only_readme == 'false' &&
(github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request' && github.actor != '0xNikilite'))
if: needs.check-readme-only.outputs.only_readme == 'false'
steps:
- name: Checkout repository
uses: actions/checkout@v4