chore(ci): make merge-conditions job copy/pastable
Refs: forgejo/forgejo#5999
This commit is contained in:
parent
a5363a539b
commit
64a89c8d33
1 changed files with 12 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Copyright 2024 The Forgejo Authors
|
# Copyright 2024 The Forgejo Authors
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
name: requirements
|
name: issue-labels
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
@ -9,19 +9,26 @@ on:
|
||||||
- labeled
|
- labeled
|
||||||
- edited
|
- edited
|
||||||
- opened
|
- opened
|
||||||
- synchronize
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
merge-conditions:
|
merge-conditions:
|
||||||
if: vars.ROLE == 'forgejo-coding'
|
if: >
|
||||||
|
vars.ROLE == 'forgejo-coding' &&
|
||||||
|
|
||||||
|
github.event_name == 'pull_request' &&
|
||||||
|
(
|
||||||
|
github.event.action == 'label_updated' ||
|
||||||
|
github.event.action == 'edited' ||
|
||||||
|
github.event.action == 'opened'
|
||||||
|
)
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: 'code.forgejo.org/oci/node:20-bookworm'
|
image: 'code.forgejo.org/oci/node:20-bookworm'
|
||||||
steps:
|
steps:
|
||||||
- name: Debug output
|
- name: Debug info
|
||||||
run: |
|
run: |
|
||||||
cat <<'EOF'
|
cat <<'EOF'
|
||||||
${{ toJSON(github.event) }}
|
${{ toJSON(github) }}
|
||||||
EOF
|
EOF
|
||||||
- name: Missing test label
|
- name: Missing test label
|
||||||
if: >
|
if: >
|
||||||
|
|
Loading…
Reference in a new issue