diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f3b60ab8..12862d38 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,9 +15,25 @@ env: GITHUB_TOKEN: ${{ secrets.ETOKEN }} jobs: + DetermineRunner: + name: Determine Runner + runs-on: ubuntu-latest + outputs: + runner: ${{ steps.set-runner.outputs.runner }} + steps: + - name: Determine which runner to use + id: set-runner + uses: benjaminmichaelis/get-soonest-available-runner@v1.1.0 + with: + primary-runner: "self-hosted" + fallback-runner: "ubuntu-latest" + min-available-runners: 1 + github-token: ${{ env.GITHUB_TOKEN }} + Build: name: Build Equicord - runs-on: self-hosted + needs: DetermineRunner + runs-on: ${{ needs.DetermineRunner.outputs.runner}} steps: - uses: actions/checkout@v4