Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion workflow-templates/ai-policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ concurrency:

jobs:
check-ai-trailers:
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}
steps:
- name: Collect PR commit messages
id: collect
Expand Down
2 changes: 1 addition & 1 deletion workflow-templates/appstore-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ permissions:

jobs:
build_and_publish:
runs-on: ubuntu-latest
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }}

# Only allowed to be run on nextcloud-releases repositories
if: ${{ github.repository_owner == 'nextcloud-releases' }}
Expand Down
2 changes: 1 addition & 1 deletion workflow-templates/block-merge-eol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

# Only run on stableXX branches
if: startsWith( github.base_ref, 'stable')
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}

steps:
- name: Set server major version environment
Expand Down
2 changes: 1 addition & 1 deletion workflow-templates/block-merge-freeze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

if: github.event.pull_request.draft == false

runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}

steps:
- name: Register server reference to fallback to master branch
Expand Down
2 changes: 1 addition & 1 deletion workflow-templates/block-unconventional-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
block-unconventional-commits:
name: Block unconventional commits

runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}

steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions workflow-templates/command-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ permissions:

jobs:
init:
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}

# On pull requests and if the comment starts with `/compile`
if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/compile')
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
reactions: '-1'

process:
runs-on: ubuntu-latest
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }}
needs: init

steps:
Expand Down
4 changes: 2 additions & 2 deletions workflow-templates/command-openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ permissions:

jobs:
init:
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}

# On pull requests and if the comment starts with `/openapi`
if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/openapi')
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
reactions: '-1'

process:
runs-on: ubuntu-latest
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }}
needs: init

steps:
Expand Down
6 changes: 3 additions & 3 deletions workflow-templates/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ permissions:

jobs:
init:
runs-on: ubuntu-latest
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }}
outputs:
nodeVersion: ${{ steps.versions.outputs.node-version }}
npmVersion: ${{ steps.versions.outputs.package-manager-version }}
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
path: ./

cypress:
runs-on: ubuntu-latest
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }}
needs: init

strategy:
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
path: nextcloud.log

summary:
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}
needs: [init, cypress]

if: always()
Expand Down
2 changes: 1 addition & 1 deletion workflow-templates/dependabot-approve-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ concurrency:
jobs:
auto-approve-merge:
if: github.event.pull_request.user.login == 'dependabot[bot]'
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}
env:
# env variable for maintainers: 'true' allows to auto-merge 1.0.2 -> 2.0.0
ALLOW_MAJOR: false
Expand Down
2 changes: 1 addition & 1 deletion workflow-templates/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ permissions:

jobs:
build-and-deploy:
runs-on: ubuntu-latest
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }}

name: Build and deploy
steps:
Expand Down
2 changes: 1 addition & 1 deletion workflow-templates/fixup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
pull-requests: write
name: Block fixup and squash commits

runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}

steps:
- name: Run check
Expand Down
6 changes: 3 additions & 3 deletions workflow-templates/lint-eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ concurrency:

jobs:
changes:
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}
permissions:
contents: read
pull-requests: read
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
- '**.vue'

lint:
runs-on: ubuntu-latest
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }}

needs: changes
if: needs.changes.outputs.src != 'false'
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
summary:
permissions:
contents: none
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}
needs: [changes, lint]

if: always()
Expand Down
2 changes: 1 addition & 1 deletion workflow-templates/lint-info-xml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ concurrency:

jobs:
xml-linters:
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}

name: info.xml lint
steps:
Expand Down
2 changes: 1 addition & 1 deletion workflow-templates/lint-php-cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ concurrency:

jobs:
lint:
runs-on: ubuntu-latest
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }}

name: php-cs

Expand Down
6 changes: 3 additions & 3 deletions workflow-templates/lint-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ concurrency:

jobs:
matrix:
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}
outputs:
php-min: ${{ steps.versions.outputs.php-min }}
php-max: ${{ steps.versions.outputs.php-max }}
Expand All @@ -34,7 +34,7 @@ jobs:
uses: nextcloud-libraries/nextcloud-version-matrix@d96fc6d3fd6cb9fc67f92d72aed808e802a5e65b # v1.3.6

php-lint:
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}
needs: matrix
strategy:
matrix:
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
summary:
permissions:
contents: none
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}
needs: php-lint

if: always()
Expand Down
2 changes: 1 addition & 1 deletion workflow-templates/lint-stylelint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ concurrency:

jobs:
lint:
runs-on: ubuntu-latest
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }}

name: stylelint

Expand Down
6 changes: 3 additions & 3 deletions workflow-templates/lint-typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ concurrency:

jobs:
changes:
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}
permissions:
contents: read
pull-requests: read
Expand All @@ -48,7 +48,7 @@ jobs:
- '**.vue'

test:
runs-on: ubuntu-latest
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }}

needs: changes
if: needs.changes.outputs.src != 'false'
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
summary:
permissions:
contents: none
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}
needs: [changes, test]

if: always()
Expand Down
6 changes: 3 additions & 3 deletions workflow-templates/node-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ concurrency:

jobs:
changes:
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}
permissions:
contents: read
pull-requests: read
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
- '**.vue'

test:
runs-on: ubuntu-latest
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }}

needs: changes
if: needs.changes.outputs.src != 'false'
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
summary:
permissions:
contents: none
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}
needs: [changes, test]

if: always()
Expand Down
2 changes: 1 addition & 1 deletion workflow-templates/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ concurrency:

jobs:
summary:
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}
if: always()

# This is the summary, we just avoid to rename it so that branch protection rules still match
Expand Down
2 changes: 1 addition & 1 deletion workflow-templates/npm-audit-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ permissions:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }}

env:
# env variable for maintainers: 'false' disables auto-merge for these pull requests
Expand Down
6 changes: 3 additions & 3 deletions workflow-templates/npm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ concurrency:

jobs:
changes:
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}
permissions:
contents: read
pull-requests: read
Expand All @@ -45,7 +45,7 @@ jobs:
- '**.vue'

build:
runs-on: ubuntu-latest
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }}

needs: changes
if: needs.changes.outputs.src != 'false'
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
summary:
permissions:
contents: none
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}
needs: [changes, build]

if: always()
Expand Down
2 changes: 1 addition & 1 deletion workflow-templates/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ concurrency:

jobs:
openapi:
runs-on: ubuntu-latest
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }}

if: ${{ github.repository_owner != 'nextcloud-gmbh' }}

Expand Down
2 changes: 1 addition & 1 deletion workflow-templates/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ permissions:

jobs:
static-analysis:
runs-on: ubuntu-latest
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }}

name: static-phpstan-analysis
steps:
Expand Down
6 changes: 3 additions & 3 deletions workflow-templates/phpunit-mariadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ concurrency:

jobs:
changes-and-matrix:
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}
permissions:
contents: read
pull-requests: read
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
uses: nextcloud-libraries/nextcloud-version-matrix@d96fc6d3fd6cb9fc67f92d72aed808e802a5e65b # v1.3.6

phpunit-mariadb:
runs-on: ubuntu-latest
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }}

needs: changes-and-matrix
if: needs.changes-and-matrix.outputs.src != 'false'
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
summary:
permissions:
contents: none
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}
needs: [changes-and-matrix, phpunit-mariadb]

if: always()
Expand Down
6 changes: 3 additions & 3 deletions workflow-templates/phpunit-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ concurrency:

jobs:
changes-and-matrix:
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}
permissions:
contents: read
pull-requests: read
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
matrix: '{"mysql-versions": ["8.4"]}'

phpunit-mysql:
runs-on: ubuntu-latest
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST || '"ubuntu-latest"') }}

needs: changes-and-matrix
if: needs.changes-and-matrix.outputs.src != 'false'
Expand Down Expand Up @@ -191,7 +191,7 @@ jobs:
summary:
permissions:
contents: none
runs-on: ubuntu-latest-low
runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}
needs: [changes-and-matrix, phpunit-mysql]

if: always()
Expand Down
Loading
Loading