Skip to content

Commit

Permalink
ci: use repo variable to use same ubuntu runner in all workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
csouchet committed Jan 17, 2025
1 parent 0591d31 commit c42ab16
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
fail-fast: false
matrix:
config:
- {os: ubuntu-22.04, r: '3.6.3'}
- {os: ubuntu-22.04, r: '4.1.1'}
- {os: ${{ vars.RUNNER_UBUNTU }}, r: '3.6.3'}
- {os: ${{ vars.RUNNER_UBUNTU }}, r: '4.1.1'}
# CRAN submission required to use this R version
- {os: ubuntu-22.04, r: 'release'}
- {os: ${{ vars.RUNNER_UBUNTU }}, r: 'release'}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fill-gh-draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
update_release_draft:
runs-on: ubuntu-22.04
runs-on: ${{ vars.RUNNER_UBUNTU }}
permissions:
# To create or update releases
# https://docs.github.com/en/rest/reference/permissions-required-for-github-apps#permission-on-contents
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-metadata-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
pr-title:
runs-on: ubuntu-22.04
runs-on: ${{ vars.RUNNER_UBUNTU }}
permissions:
pull-requests: write # post comments when the PR title doesn't match the "Conventional Commits" rules
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-documentation-pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
jobs:
# for Pull Request
pr_preview: # the id is used by surge to generate the surge url
runs-on: ubuntu-22.04
runs-on: ${{ vars.RUNNER_UBUNTU }}
permissions:
pull-requests: write # surge-preview: PR comments
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ concurrency:
jobs:
# Build job
build:
runs-on: ubuntu-22.04
runs-on: ${{ vars.RUNNER_UBUNTU }}
steps:
- uses: actions/checkout@v4
- name: Build
Expand All @@ -50,7 +50,7 @@ jobs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-22.04
runs-on: ${{ vars.RUNNER_UBUNTU }}
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
default: 'patch'
jobs:
bumpVersion:
runs-on: ubuntu-22.04
runs-on: ${{ vars.RUNNER_UBUNTU }}
steps:
- run: |
echo "New version type: ${{ github.event.inputs.type }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-bpmn-visualization-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
updateVersion:
runs-on: ubuntu-22.04
runs-on: ${{ vars.RUNNER_UBUNTU }}
env:
VERSION: ${{ github.event.client_payload.version || github.event.inputs.version }}
steps:
Expand Down

0 comments on commit c42ab16

Please sign in to comment.