1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-24 08:57:03 -05:00

chore(ci): ROLE forgejo-coding & forgejo-testing

When the CI vars.ROLE is forgejo-coding, it is assumed to be the
repository where collaborative coding happens,
i.e. https://codeberg.org/forgejo/forgejo

When the CI vars.ROLE is forgejo-testing, it is assumed that only codebase
testing is to be run and no other tests such as release build
integration, label constraints, backporting etc.

(cherry picked from commit f82840f1ea)

Conflicts:
	.forgejo/workflows/merge-requirements.yml
This commit is contained in:
Earl Warren 2024-11-13 22:18:35 +01:00
parent 86496d701d
commit 3465f73e2c
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
7 changed files with 7 additions and 7 deletions

View file

@ -31,7 +31,7 @@ on:
jobs: jobs:
backporting: backporting:
if: > if: >
!startsWith(vars.ROLE, 'forgejo-') && ( ( vars.ROLE == 'forgejo-coding' ) && (
github.event.pull_request.merged github.event.pull_request.merged
&& &&
contains(toJSON(github.event.pull_request.labels), 'backport/v') contains(toJSON(github.event.pull_request.labels), 'backport/v')

View file

@ -22,7 +22,7 @@ on:
jobs: jobs:
release-simulation: release-simulation:
if: ${{ !startsWith(vars.ROLE, 'forgejo-') }} if: vars.ROLE == 'forgejo-coding'
runs-on: self-hosted runs-on: self-hosted
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4

View file

@ -24,7 +24,7 @@ on:
jobs: jobs:
info: info:
if: ${{ !startsWith(vars.ROLE, 'forgejo-') }} if: vars.ROLE == 'forgejo-coding'
runs-on: docker runs-on: docker
container: container:
image: code.forgejo.org/oci/node:20-bookworm image: code.forgejo.org/oci/node:20-bookworm

View file

@ -6,7 +6,7 @@ on:
jobs: jobs:
release-notes: release-notes:
if: ${{ !startsWith(vars.ROLE, 'forgejo-') if: vars.ROLE == 'forgejo-coding'
runs-on: docker runs-on: docker
container: container:
image: 'code.forgejo.org/oci/node:20-bookworm' image: 'code.forgejo.org/oci/node:20-bookworm'

View file

@ -7,7 +7,7 @@ on:
jobs: jobs:
release-notes: release-notes:
if: ${{ !startsWith(vars.ROLE, 'forgejo-') && contains(github.event.pull_request.labels.*.name, 'worth a release-note') }} if: ( vars.ROLE == 'forgejo-coding' ) && contains(github.event.pull_request.labels.*.name, 'worth a release-note')
runs-on: docker runs-on: docker
container: container:
image: 'code.forgejo.org/oci/node:20-bookworm' image: 'code.forgejo.org/oci/node:20-bookworm'

View file

@ -21,7 +21,7 @@ env:
jobs: jobs:
renovate: renovate:
if: ${{ secrets.RENOVATE_TOKEN != '' }} if: vars.ROLE == 'forgejo-coding' && secrets.RENOVATE_TOKEN != ''
runs-on: docker runs-on: docker
container: container:

View file

@ -9,7 +9,7 @@ on:
jobs: jobs:
backend-checks: backend-checks:
if: ${{ !startsWith(vars.ROLE, 'forgejo-') }} if: vars.ROLE == 'forgejo-coding' || vars.ROLE == 'forgejo-testing'
runs-on: docker runs-on: docker
container: container:
image: 'code.forgejo.org/oci/node:20-bookworm' image: 'code.forgejo.org/oci/node:20-bookworm'