diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index f53cfae..c98e76d 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -15,7 +15,7 @@ concurrency: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ github.event.pull_request.head.repo.full_name != '' && github.event.pull_request.head.repo.full_name != github.repository && 'ubuntu-latest' || fromJSON('["self-hosted","Linux","ARM64","pigma-siderefresh"]') }} timeout-minutes: 10 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -54,7 +54,7 @@ jobs: deploy: needs: build if: github.ref == 'refs/heads/master' - runs-on: ubuntu-latest + runs-on: ${{ github.event.pull_request.head.repo.full_name != '' && github.event.pull_request.head.repo.full_name != github.repository && 'ubuntu-latest' || fromJSON('["self-hosted","Linux","ARM64","pigma-siderefresh"]') }} timeout-minutes: 10 permissions: pages: write