Skip to content

Commit ec2ad32

Browse files
committed
[skip ci] Skip pecl and coverage on non-master branches
1 parent 90d4873 commit ec2ad32

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/nightly.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ jobs:
357357
with:
358358
token: ${{ secrets.ACTION_MONITORING_SLACK }}
359359
COVERAGE_DEBUG_NTS:
360-
if: github.repository == 'php/php-src' || github.event_name == 'workflow_dispatch'
360+
if: inputs.branch == 'master'
361361
services:
362362
mysql:
363363
image: mysql:8.3
@@ -385,6 +385,8 @@ jobs:
385385
steps:
386386
- name: git checkout
387387
uses: actions/checkout@v4
388+
with:
389+
ref: ${{ inputs.branch }}
388390
- name: Create MSSQL container
389391
uses: ./.github/actions/setup-mssql
390392
- name: apt
@@ -831,7 +833,7 @@ jobs:
831833
with:
832834
token: ${{ secrets.ACTION_MONITORING_SLACK }}
833835
PECL:
834-
if: github.repository == 'php/php-src' || github.event_name == 'workflow_dispatch'
836+
if: inputs.branch == 'master'
835837
runs-on: ubuntu-22.04
836838
env:
837839
CC: ccache gcc
@@ -841,6 +843,7 @@ jobs:
841843
uses: actions/checkout@v4
842844
with:
843845
path: php
846+
ref: ${{ inputs.branch }}
844847
- name: git checkout apcu
845848
uses: actions/checkout@v4
846849
with:

.github/workflows/root.yml

+5
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
run_macos_arm64: true
5050
ubuntu_version: '22.04'
5151
windows_version: '2022'
52+
secrets: inherit
5253
NIGHTLY_84:
5354
needs: GENERATE_MATRIX
5455
if: contains(needs.GENERATE_MATRIX.outputs.branches, 'PHP-8.4')
@@ -62,6 +63,7 @@ jobs:
6263
run_macos_arm64: true
6364
ubuntu_version: '22.04'
6465
windows_version: '2022'
66+
secrets: inherit
6567
NIGHTLY_83:
6668
needs: GENERATE_MATRIX
6769
if: contains(needs.GENERATE_MATRIX.outputs.branches, 'PHP-8.3')
@@ -75,6 +77,7 @@ jobs:
7577
run_macos_arm64: false
7678
ubuntu_version: '22.04'
7779
windows_version: '2019'
80+
secrets: inherit
7881
NIGHTLY_82:
7982
needs: GENERATE_MATRIX
8083
if: contains(needs.GENERATE_MATRIX.outputs.branches, 'PHP-8.2')
@@ -88,6 +91,7 @@ jobs:
8891
run_macos_arm64: false
8992
ubuntu_version: '20.04'
9093
windows_version: '2019'
94+
secrets: inherit
9195
NIGHTLY_81:
9296
needs: GENERATE_MATRIX
9397
if: contains(needs.GENERATE_MATRIX.outputs.branches, 'PHP-8.1')
@@ -101,3 +105,4 @@ jobs:
101105
run_macos_arm64: false
102106
ubuntu_version: '20.04'
103107
windows_version: '2019'
108+
secrets: inherit

0 commit comments

Comments
 (0)