gha: use var to set runs-on

Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com>
This commit is contained in:
Vitor Bandeira
2025-05-12 14:23:09 -03:00
parent baaed2e490
commit ec0ec3c77d
13 changed files with 13 additions and 13 deletions

View File

@@ -10,7 +10,7 @@ on:
jobs:
lint:
runs-on: ubuntu-latest
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
steps:
- name: Checkout Code
uses: actions/checkout@v4

View File

@@ -10,7 +10,7 @@ on:
jobs:
format:
runs-on: ubuntu-latest
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
steps:
- name: setup
run: |

View File

@@ -10,7 +10,7 @@ on:
jobs:
Build:
runs-on: ubuntu-latest
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
steps:
- name: Checkout code
uses: actions/checkout@v4

View File

@@ -9,7 +9,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
steps:
# Downloads the artifact uploaded by the lint action
- name: 'Download artifact'

View File

@@ -7,7 +7,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

View File

@@ -16,7 +16,7 @@ on:
jobs:
Sync-Branch-From-Upstream:
name: Automatic sync 'master' from The-OpenROAD-Project/OpenROAD
runs-on: ubuntu-latest
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
# Only allow one action to run at a time.
concurrency: sync-branch-from-upstream

View File

@@ -16,7 +16,7 @@ on:
jobs:
Sync-Branch-From-Upstream:
name: Automatic sync 'master' from The-OpenROAD-Project/OpenROAD
runs-on: ubuntu-latest
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
# Only allow one action to run at a time.
concurrency: sync-branch-from-upstream

View File

@@ -10,7 +10,7 @@ on:
jobs:
format:
runs-on: ubuntu-latest
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
steps:
- name: Check out repository code
uses: actions/checkout@v4

View File

@@ -10,7 +10,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

View File

@@ -12,7 +12,7 @@ jobs:
Delete-From-Staging:
name: Delete branch from staging
runs-on: ubuntu-latest
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
permissions:
# Read-only access so we don't accidentally try to push to *this* repository.

View File

@@ -12,7 +12,7 @@ env:
jobs:
Push-To-Staging:
name: Push to staging
runs-on: ubuntu-latest
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
permissions:
# Read-only access so we don't accidentally try to push to *this* repository.

View File

@@ -8,7 +8,7 @@ on:
jobs:
scan:
runs-on: ubuntu-latest
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
steps:
- name: Check out repository code
uses: actions/checkout@v4

View File

@@ -8,7 +8,7 @@ on:
jobs:
j1:
name: repostats-for-nice-project
runs-on: ubuntu-latest
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
steps:
- name: run-ghrs
uses: jgehrcke/github-repo-stats@v1.4.2