diff --git a/.github/workflows/lfs-maintenance.yaml b/.github/workflows/lfs-maintenance.yaml index d2e7bb2e7e..019262715a 100644 --- a/.github/workflows/lfs-maintenance.yaml +++ b/.github/workflows/lfs-maintenance.yaml @@ -23,7 +23,7 @@ jobs: sync: runs-on: ubuntu-latest # Skip if PR is in draft mode - if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && github.event.pull_request.draft == false) + if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && github.event.pull_request.draft == false) || !github.event.pull_request.head.repo.fork steps: - name: Checkout Repository uses: actions/checkout@v4 diff --git a/.github/workflows/setup/action.yaml b/.github/workflows/setup/action.yaml index 818060c3b0..181ad54eaf 100644 --- a/.github/workflows/setup/action.yaml +++ b/.github/workflows/setup/action.yaml @@ -19,7 +19,7 @@ runs: - shell: bash name: No retries! run: | - if [ "${{ github.run_attempt }}" -gt 1 ]; then + if [ "${{ github.run_attempt }}" -gt ${{ github.event.pull_request.head.repo.fork && github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' && 2 || 1}} ]; then echo -e "\033[0;31m##################################################" echo -e "\033[0;31m Retries not allowed! Fix the flaky test! " echo -e "\033[0;31m##################################################\033[0m"