loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request 'chore(ci): make end-to-end job copy/pastable' (#6000) from earl-warren/forgejo:wip-ci-labels into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6000
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>

+16 -38
+16 -38
.forgejo/workflows/cascade-setup-end-to-end.yml
··· 1 1 # Copyright 2024 The Forgejo Authors 2 2 # SPDX-License-Identifier: MIT 3 3 # 4 - # To modify this workflow: 5 - # 6 - # - push it to the wip-ci-end-to-end branch on the forgejo repository 7 - # otherwise it will not have access to the secrets required to push 8 - # the cascading PR 9 - # 10 - # - once it works, open a pull request for the sake of keeping track 11 - # of the change even if the PR won't run it because it will use 12 - # whatever is in the default branch instead 13 - # 14 - # - after it is merged, double check it works by setting the 15 - # run-end-to-end-test on a pull request (any pull request will do) 16 - # 17 - name: end-to-end 4 + name: issue-labels 18 5 19 6 on: 20 - push: 21 - branches: 22 - - 'wip-ci-end-to-end' 23 7 pull_request_target: 24 8 types: 25 9 - labeled 26 10 27 11 jobs: 28 - info: 29 - if: vars.ROLE == 'forgejo-coding' 30 - runs-on: docker 31 - container: 32 - image: code.forgejo.org/oci/node:20-bookworm 33 - steps: 34 - - name: event 35 - run: | 36 - echo github.event.pull_request.head.repo.fork = ${{ github.event.pull_request.head.repo.fork }} 37 - echo github.event.action = ${{ github.event.action }} 38 - echo github.event.label 39 - cat <<'EOF' 40 - ${{ toJSON(github.event.label) }} 41 - EOF 42 - cat <<'EOF' 43 - ${{ toJSON(github.event) }} 44 - EOF 12 + end-to-end: 13 + if: > 14 + vars.ROLE == 'forgejo-coding' && 15 + 16 + secrets.END_TO_END_CASCADING_PR_DESTINATION != '' && 17 + secrets.END_TO_END_CASCADING_PR_ORIGIN != '' && 45 18 46 - cascade: 47 - if: > 48 - vars.ROLE == 'forgejo-coding' && ( 19 + ( 49 20 github.event_name == 'push' || 50 21 ( 51 - github.event.action == 'label_updated' && github.event.label.name == 'run-end-to-end-tests' 22 + github.event_name == 'pull_request_target' && 23 + github.event.action == 'label_updated' && 24 + github.event.label.name == 'run-end-to-end-tests' 52 25 ) 53 26 ) 54 27 runs-on: docker 55 28 container: 56 29 image: code.forgejo.org/oci/node:20-bookworm 57 30 steps: 31 + - name: Debug info 32 + run: | 33 + cat <<'EOF' 34 + ${{ toJSON(github) }} 35 + EOF 58 36 - uses: actions/checkout@v4 59 37 with: 60 38 fetch-depth: '0'