diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9291668283..8bacbb3dbf 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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: @@ -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: @@ -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: @@ -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: diff --git a/ci/actions-templates/linux-builds-template.yaml b/ci/actions-templates/linux-builds-template.yaml index 7523a706ce..6c6e083f56 100644 --- a/ci/actions-templates/linux-builds-template.yaml +++ b/ci/actions-templates/linux-builds-template.yaml @@ -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: diff --git a/ci/actions-templates/windows-builds-template.yaml b/ci/actions-templates/windows-builds-template.yaml index e8f2af7bfd..816d2886c1 100644 --- a/ci/actions-templates/windows-builds-template.yaml +++ b/ci/actions-templates/windows-builds-template.yaml @@ -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: