mirror of
https://github.com/0xNikilite/oboromi.git
synced 2026-01-31 01:15:22 +01:00
[workflows] Simplify conditional checks in CI workflow
This commit is contained in:
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user