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 backporting job copy/pastable' (#6002) from earl-warren/forgejo:wip-ci-labels-backports into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6002
Reviewed-by: Otto <otto@codeberg.org>

Otto 6cfaebf0 e0b37253

+10 -25
+10 -25
.forgejo/workflows/backport.yml
··· 1 1 # Copyright 2024 The Forgejo Authors 2 2 # SPDX-License-Identifier: MIT 3 3 # 4 - # To modify this workflow: 5 - # 6 - # - change pull_request_target: to pull_request: 7 - # so that it runs from a pull request instead of the default branch 8 - # 9 - # - push it to the wip-ci-backport branch on the forgejo repository 10 - # otherwise it will not have access to the secrets required to push 11 - # the PR 12 - # 13 - # - open a pull request targetting wip-ci-backport that includes a change 14 - # that can be backported without conflict in v1.21 and set the 15 - # `backport/v1.21` label. 16 - # 17 - # - once it works, open a pull request for the sake of keeping track 18 - # of the change even if the PR won't run it because it will use 19 - # whatever is in the default branch instead 20 - # 21 - # - after it is merged, double check it works by setting a 22 - # `backport/v1.21` label on a merged pull request that can be backported 23 - # without conflict. 24 - # 4 + name: issue-labels 5 + 25 6 on: 26 7 pull_request_target: 27 8 types: ··· 31 12 jobs: 32 13 backporting: 33 14 if: > 34 - ( vars.ROLE == 'forgejo-coding' ) && ( 35 - github.event.pull_request.merged 36 - && 15 + vars.ROLE == 'forgejo-coding' && 16 + 17 + secrets.BACKPORT_TOKEN != '' && 18 + 19 + github.event_name == 'pull_request_target' && 20 + ( 21 + github.event.pull_request.merged && 37 22 contains(toJSON(github.event.pull_request.labels), 'backport/v') 38 23 ) 39 24 runs-on: docker 40 25 container: 41 26 image: 'code.forgejo.org/oci/node:20-bookworm' 42 27 steps: 43 - - name: event info 28 + - name: Debug info 44 29 run: | 45 30 cat <<'EOF' 46 31 ${{ toJSON(github) }}