Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[improve][ci] Skip detecting changed files in fork repositories #22567

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci-go-functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,15 @@ jobs:
uses: actions/checkout@v4

- name: Detect changed files
if: ${{ github.event_name == 'pull_request' && github.repository == 'apache/pulsar' }}
id: changes
uses: apache/pulsar-test-infra/paths-filter@master
with:
filters: .github/changes-filter.yaml
list-files: csv

- name: Check changed files
if: ${{ github.event_name == 'pull_request' && github.repository == 'apache/pulsar' }}
id: check_changes
run: |
if [[ "${GITHUB_EVENT_NAME}" != "schedule" ]]; then
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/pulsar-ci-flaky.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ jobs:
uses: actions/checkout@v4

- name: Detect changed files
if: ${{ github.event_name == 'pull_request' }}
if: ${{ github.event_name == 'pull_request' && github.repository == 'apache/pulsar' }}
id: changes
uses: apache/pulsar-test-infra/paths-filter@master
with:
filters: .github/changes-filter.yaml
list-files: csv

- name: Check changed files
if: ${{ github.event_name == 'pull_request' }}
if: ${{ github.event_name == 'pull_request' && github.repository == 'apache/pulsar' }}
id: check_changes
run: |
if [[ "${GITHUB_EVENT_NAME}" != "schedule" && "${GITHUB_EVENT_NAME}" != "workflow_dispatch" ]]; then
Expand All @@ -126,6 +126,7 @@ jobs:
fi

- name: Check if coverage should be collected
if: ${{ github.repository == 'apache/pulsar' }}
id: check_coverage
run: |
echo "collect_coverage=${{
Expand Down Expand Up @@ -269,4 +270,4 @@ jobs:
${{ env.TRACE_TEST_RESOURCE_CLEANUP_DIR }}/*
${{ env.THREAD_LEAK_DETECTOR_DIR }}/*
retention-days: 7
if-no-files-found: ignore
if-no-files-found: ignore
7 changes: 4 additions & 3 deletions .github/workflows/pulsar-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ jobs:
uses: actions/checkout@v4

- name: Detect changed files
if: ${{ github.event_name == 'pull_request' }}
if: ${{ github.event_name == 'pull_request' && github.repository == 'apache/pulsar' }}
id: changes
uses: apache/pulsar-test-infra/paths-filter@master
with:
filters: .github/changes-filter.yaml
list-files: csv

- name: Check changed files
if: ${{ github.event_name == 'pull_request' }}
if: ${{ github.event_name == 'pull_request' && github.repository == 'apache/pulsar' }}
id: check_changes
run: |
if [[ "${GITHUB_EVENT_NAME}" != "schedule" && "${GITHUB_EVENT_NAME}" != "workflow_dispatch" ]]; then
Expand All @@ -126,6 +126,7 @@ jobs:
fi

- name: Check if coverage should be collected
if: ${{ github.repository == 'apache/pulsar' }}
id: check_coverage
run: |
echo "collect_coverage=${{
Expand Down Expand Up @@ -1555,4 +1556,4 @@ jobs:
if: ${{ needs.preconditions.outputs.docs_only != 'true' && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
run: |
gh-actions-artifact-client.js delete pulsar-maven-repository-binaries.tar.zst || true
gh-actions-artifact-client.js delete pulsar-server-distribution.tar.zst || true
gh-actions-artifact-client.js delete pulsar-server-distribution.tar.zst || true
Loading