Skip to content

Commit 3465f73

Browse files
committed
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 f82840f) Conflicts: .forgejo/workflows/merge-requirements.yml
1 parent 86496d7 commit 3465f73

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

.forgejo/workflows/backport.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ on:
3131
jobs:
3232
backporting:
3333
if: >
34-
!startsWith(vars.ROLE, 'forgejo-') && (
34+
( vars.ROLE == 'forgejo-coding' ) && (
3535
github.event.pull_request.merged
3636
&&
3737
contains(toJSON(github.event.pull_request.labels), 'backport/v')

.forgejo/workflows/build-release-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on:
2222

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

.forgejo/workflows/cascade-setup-end-to-end.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ on:
2424

2525
jobs:
2626
info:
27-
if: ${{ !startsWith(vars.ROLE, 'forgejo-') }}
27+
if: vars.ROLE == 'forgejo-coding'
2828
runs-on: docker
2929
container:
3030
image: code.forgejo.org/oci/node:20-bookworm

.forgejo/workflows/release-notes-assistant-milestones.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
release-notes:
9-
if: ${{ !startsWith(vars.ROLE, 'forgejo-')
9+
if: vars.ROLE == 'forgejo-coding'
1010
runs-on: docker
1111
container:
1212
image: 'code.forgejo.org/oci/node:20-bookworm'

.forgejo/workflows/release-notes-assistant.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

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

.forgejo/workflows/renovate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ env:
2121

2222
jobs:
2323
renovate:
24-
if: ${{ secrets.RENOVATE_TOKEN != '' }}
24+
if: vars.ROLE == 'forgejo-coding' && secrets.RENOVATE_TOKEN != ''
2525

2626
runs-on: docker
2727
container:

.forgejo/workflows/testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

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

0 commit comments

Comments
 (0)