Skip to content

Commit

Permalink
parameterize runs-on
Browse files Browse the repository at this point in the history
  • Loading branch information
ddadaal committed May 19, 2024
1 parent 16b1e6b commit 0edca36
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/api-breaking.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
check-api-breaking-changes:
name: Check SCOW API Breaking Changes
runs-on: ubuntu-latest
runs-on: ${{ vars.ACTION_RUNNER_LABEL }}

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:
jobs:
deploy-docs-preview:
name: Deploy Docs Preview
runs-on: ubuntu-latest
runs-on: ${{ vars.ACTION_RUNNER_LABEL }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3.0.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:
jobs:
deploy-docs:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
runs-on: ${{ vars.ACTION_RUNNER_LABEL }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3.0.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-pr-content.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:

lint-title:
runs-on: ubuntu-latest
runs-on: ${{ vars.ACTION_RUNNER_LABEL }}
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
delete-scow-vagrant:
name: Delete scow-vagrant PR branch
if: vars.PUSH_VAGRANT == 'true'
runs-on: ubuntu-latest
runs-on: ${{ vars.ACTION_RUNNER_LABEL }}
steps:
- name: Delete scow-vagrant PR branch
uses: dawidd6/action-delete-branch@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/side-projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:
jobs:
scow-vagrant:
name: Update scow-vagrant
runs-on: ubuntu-latest
runs-on: ${{ vars.ACTION_RUNNER_LABEL }}
if: vars.PUSH_VAGRANT == 'true'
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
tag-if-needed:
runs-on: ubuntu-latest
runs-on: ${{ vars.ACTION_RUNNER_LABEL }}
if: github.event.repository.full_name == 'PKUHPC/SCOW'
steps:
- uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-build-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ env:
jobs:
test-version-packages:
name: Test and version packages
runs-on: ubuntu-latest
runs-on: ${{ vars.ACTION_RUNNER_LABEL }}

permissions:
contents: write
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:

scow-cli:
needs: test-version-packages
runs-on: ubuntu-latest
runs-on: ${{ vars.ACTION_RUNNER_LABEL }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:

build-images:
needs: test-version-packages
runs-on: ubuntu-latest
runs-on: ${{ vars.ACTION_RUNNER_LABEL }}

permissions:
contents: read
Expand Down Expand Up @@ -183,7 +183,7 @@ jobs:


release:
runs-on: ubuntu-latest
runs-on: ${{ vars.ACTION_RUNNER_LABEL }}
needs:
- scow-cli
- build-images
Expand Down

0 comments on commit 0edca36

Please sign in to comment.