1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-15 18:57:01 +00:00

chore: cascade forgejo pull request out of the runner branch or PR (followup)

debug information to figure out why it does not work
This commit is contained in:
Earl Warren 2025-08-18 13:36:18 +02:00
parent 54130f2380
commit ebbe6ad2b1
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -47,6 +47,9 @@ jobs:
${{ toJSON(forge.event.pull_request.labels.*.name) }}
EOF
cat <<'EOF'
push => ${{ forge.event_name == 'push' && ( forge.ref_name == 'main' || forge.ref_name == 'wip-cascade') }}
pull_request_target synchornized => ${{ ( forge.event.action == 'synchronized' && contains(forge.event.pull_request.labels.*.name, 'run-forgejo-tests') ) }}
pull_request_target label_updated => ${{ ( forge.event.action == 'label_updated' && forge.event.label == 'run-forgejo-tests' ) }}
contains => ${{ contains(forge.event.pull_request.labels.*.name, 'run-forgejo-tests') }}
contains boolean => ${{ contains(forge.event.pull_request.labels.*.name, 'run-forgejo-tests') == true }}
EOF
@ -58,7 +61,7 @@ jobs:
#
# Always run when a commit is pushed to the main or wip-cascade branch
# If this is a pull request, run
# - when the 'run-forgejo-tests' label is set (label_updated) (but not if another label is set or if a label is removed)
# - when the `run-forgejo-tests` label is set (label_updated) (but not if another label is set or if a label is removed)
# - when a new commit is pushed to the pull request (synchronized) if the `run-forgejo-tests` is already present
#
if: >
@ -67,8 +70,8 @@ jobs:
forge.event_name == 'push' && ( forge.ref_name == 'main' || forge.ref_name == 'wip-cascade')
) || (
forge.event_name == 'pull_request_target' && (
( github.event.action == 'synchronized' && contains(forge.event.pull_request.labels.*.name, 'run-forgejo-tests') ) ||
( github.event.action == 'label_updated' && github.event.label == 'run-forgejo-tests' )
( forge.event.action == 'synchronized' && contains(forge.event.pull_request.labels.*.name, 'run-forgejo-tests') ) ||
( forge.event.action == 'label_updated' && forge.event.label == 'run-forgejo-tests' )
)
)
)