mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-21 03:49:59 +00:00
Compare commits
1 Commits
7a8215d358
...
d6fe76f014
Author | SHA1 | Date | |
---|---|---|---|
![]() |
d6fe76f014 |
4
.github/actions/runner-fallback/action.yml
vendored
4
.github/actions/runner-fallback/action.yml
vendored
@ -11,11 +11,9 @@ inputs:
|
||||
description: 'Comma-separated label list or single label for the fallback (e.g. "ubuntu-latest")'
|
||||
required: true
|
||||
github-token:
|
||||
description: 'GitHub token with repo admin read permissions'
|
||||
description: "PAT or GITHUB_TOKEN with `repo` scope"
|
||||
required: true
|
||||
|
||||
|
||||
|
||||
outputs:
|
||||
use-runner:
|
||||
description: "JSON array of labels you can feed straight into runs-on"
|
||||
|
2
.github/workflows/docs-and-testcov.yml
vendored
2
.github/workflows/docs-and-testcov.yml
vendored
@ -29,7 +29,7 @@ jobs:
|
||||
with:
|
||||
primary-runner: "self-hosted"
|
||||
fallback-runner: "ubuntu-latest"
|
||||
github-token: ${{ secrets.CUSTOM_GH_TOKEN }}
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
docs-and-testcov:
|
||||
needs: pick-runner
|
||||
|
2
.github/workflows/run-benchmarks.yml
vendored
2
.github/workflows/run-benchmarks.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
||||
with:
|
||||
primary-runner: "self-hosted"
|
||||
fallback-runner: "ubuntu-latest"
|
||||
github-token: ${{ secrets.CUSTOM_GH_TOKEN }}
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
run-benchmarks:
|
||||
needs: pick-runner
|
||||
|
6
.github/workflows/run-unit-tests.yml
vendored
6
.github/workflows/run-unit-tests.yml
vendored
@ -12,22 +12,18 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
pick-runner:
|
||||
|
||||
if: github.event.pull_request.draft == false
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
runner: ${{ steps.choose.outputs.use-runner }}
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
- id: choose
|
||||
uses: ./.github/actions/runner-fallback
|
||||
with:
|
||||
primary-runner: "self-hosted"
|
||||
fallback-runner: "ubuntu-latest"
|
||||
github-token: ${{ secrets.CUSTOM_GH_TOKEN }}
|
||||
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
run-unit-tests:
|
||||
needs: pick-runner
|
||||
|
Loading…
x
Reference in New Issue
Block a user