Skip to content

Commit

Permalink
fix(ci): use github.event_name == 'push' instead of `github.event.p…
Browse files Browse the repository at this point in the history
…ush`
  • Loading branch information
rami3l committed Jan 4, 2024
1 parent d67cc98 commit 578696b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ jobs:
# Do not edit this file in .github/workflows
build-windows-master: # job-name skip-pr skip-stable
runs-on: windows-latest
if: ${{ (github.event.push && github.ref_name == 'master') || github.event.schedule }} # skip-pr skip-stable
if: ${{ (github.event_name == 'push' && github.ref_name == 'master') || github.event.schedule }} # skip-pr skip-stable
env:
RUSTFLAGS: -Ctarget-feature=+crt-static
strategy:
Expand Down Expand Up @@ -290,7 +290,7 @@ jobs:
# Do not edit this file in .github/workflows
build-windows-stable: # job-name skip-master skip-pr
runs-on: windows-latest
if: ${{ github.event.push && github.ref_name == 'stable' }} # skip-pr skip-master
if: ${{ github.event_name == 'push' && github.ref_name == 'stable' }} # skip-pr skip-master
env:
RUSTFLAGS: -Ctarget-feature=+crt-static
strategy:
Expand Down Expand Up @@ -576,7 +576,7 @@ jobs:
# Do not edit this file in .github/workflows
build-linux-master: # job-name skip-pr skip-stable
runs-on: ubuntu-latest
if: ${{ (github.event.push && github.ref_name == 'master') || github.event.schedule }} # skip-pr skip-stable
if: ${{ (github.event_name == 'push' && github.ref_name == 'master') || github.event.schedule }} # skip-pr skip-stable
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -725,7 +725,7 @@ jobs:
# Do not edit this file in .github/workflows
build-linux-stable: # job-name skip-master skip-pr
runs-on: ubuntu-latest
if: ${{ github.event.push && github.ref_name == 'stable' }} # skip-pr skip-master
if: ${{ github.event_name == 'push' && github.ref_name == 'stable' }} # skip-pr skip-master
strategy:
fail-fast: false
matrix:
Expand Down
4 changes: 2 additions & 2 deletions ci/actions-templates/linux-builds-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs: # skip-master skip-pr skip-stable
build-linux-stable: # job-name skip-master skip-pr
runs-on: ubuntu-latest
if: ${{ github.event.pull_request }} # skip-master skip-stable
if: ${{ (github.event.push && github.ref_name == 'master') || github.event.schedule }} # skip-pr skip-stable
if: ${{ github.event.push && github.ref_name == 'stable' }} # skip-pr skip-master
if: ${{ (github.event_name == 'push' && github.ref_name == 'master') || github.event.schedule }} # skip-pr skip-stable
if: ${{ github.event_name == 'push' && github.ref_name == 'stable' }} # skip-pr skip-master
strategy:
fail-fast: false
matrix:
Expand Down
4 changes: 2 additions & 2 deletions ci/actions-templates/windows-builds-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs: # skip-master skip-pr skip-stable
build-windows-stable: # job-name skip-master skip-pr
runs-on: windows-latest
if: ${{ github.event.pull_request }} # skip-master skip-stable
if: ${{ (github.event.push && github.ref_name == 'master') || github.event.schedule }} # skip-pr skip-stable
if: ${{ github.event.push && github.ref_name == 'stable' }} # skip-pr skip-master
if: ${{ (github.event_name == 'push' && github.ref_name == 'master') || github.event.schedule }} # skip-pr skip-stable
if: ${{ github.event_name == 'push' && github.ref_name == 'stable' }} # skip-pr skip-master
env:
RUSTFLAGS: -Ctarget-feature=+crt-static
strategy:
Expand Down

0 comments on commit 578696b

Please sign in to comment.