diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e299c7349..8b51542b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ permissions: contents: read id-token: write -on: [pull_request, workflow_call] +on: [pull_request] jobs: shared-ci: diff --git a/.github/workflows/daily_ci.yml b/.github/workflows/daily_ci.yml index 9eb7d08f7..8468c2673 100644 --- a/.github/workflows/daily_ci.yml +++ b/.github/workflows/daily_ci.yml @@ -18,9 +18,9 @@ jobs: strategy: matrix: branch: [master, v4.x] - uses: ./.github/workflows/ci.yml + uses: ./.github/workflows/shared-ci.yml with: - branch: ${{ matrix.branch }} + ref: ${{ matrix.branch }} notify: needs: [ diff --git a/.github/workflows/shared-ci.yml b/.github/workflows/shared-ci.yml index 88233a595..aa43e1825 100644 --- a/.github/workflows/shared-ci.yml +++ b/.github/workflows/shared-ci.yml @@ -8,6 +8,11 @@ on: required: false type: boolean default: false + ref: + description: 'Git ref (branch, tag, or SHA) to check out and test. Defaults to the ref that triggered the workflow.' + required: false + type: string + default: '' env: NODE_OPTIONS: "--max-old-space-size=4096" @@ -34,6 +39,7 @@ jobs: # Always need repo for test scripts and configuration, even when testing published packages uses: actions/checkout@v4 with: + ref: ${{ inputs.ref }} fetch-depth: 0 submodules: true