diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index c95d3e0..bd50c85 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -11,7 +11,7 @@ permissions: jobs: check: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository && '"ubuntu-latest"' || '["self-hosted","Linux","X64","hostinger"]') }} steps: - name: Check out repository diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8f9b65..ecf27c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ permissions: jobs: ci: name: ${{ matrix.name }} - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository && '"ubuntu-latest"' || '["self-hosted","Linux","X64","hostinger"]') }} strategy: fail-fast: false matrix: