Skip to content

Commit

Permalink
fix(ci): fix if statement for build-x86
Browse files Browse the repository at this point in the history
  • Loading branch information
truelecter committed Sep 2, 2023
1 parent aff8da7 commit adc87e8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build-x86.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ on:

env:
REF: ${{ github.event_name == 'workflow_run' && 'auto/upgrade-dependencies' || github.ref }}
SKIP: ${{ (contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) || github.event.workflow_run.conclusion == 'success') && 'false' || 'true' }}

jobs:
build_system:
if: env.SKIP != 'true'
if: (contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -44,7 +43,7 @@ jobs:
build_shell:
runs-on: ubuntu-latest
if: env.SKIP != 'true'
if: (contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) || github.event.workflow_run.conclusion == 'success')
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down

0 comments on commit adc87e8

Please sign in to comment.