CI: run changed-scope on main pushes
This commit is contained in:
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@@ -29,10 +29,11 @@ jobs:
|
|||||||
uses: ./.github/actions/detect-docs-changes
|
uses: ./.github/actions/detect-docs-changes
|
||||||
|
|
||||||
# Detect which heavy areas are touched so PRs can skip unrelated expensive jobs.
|
# Detect which heavy areas are touched so PRs can skip unrelated expensive jobs.
|
||||||
# Push to main keeps broad coverage.
|
# Push to main keeps broad coverage, but this job still needs to run so
|
||||||
|
# downstream jobs that list it in `needs` are not skipped.
|
||||||
changed-scope:
|
changed-scope:
|
||||||
needs: [docs-scope]
|
needs: [docs-scope]
|
||||||
if: github.event_name == 'pull_request' && needs.docs-scope.outputs.docs_only != 'true'
|
if: needs.docs-scope.outputs.docs_only != 'true'
|
||||||
runs-on: blacksmith-16vcpu-ubuntu-2404
|
runs-on: blacksmith-16vcpu-ubuntu-2404
|
||||||
outputs:
|
outputs:
|
||||||
run_node: ${{ steps.scope.outputs.run_node }}
|
run_node: ${{ steps.scope.outputs.run_node }}
|
||||||
|
|||||||
Reference in New Issue
Block a user