From 64a89c8d3307fb4e44c5cab3ea93154aabaf943d Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sun, 17 Nov 2024 14:40:36 +0100 Subject: [PATCH] chore(ci): make merge-conditions job copy/pastable Refs: forgejo/forgejo#5999 --- .forgejo/workflows/merge-requirements.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/merge-requirements.yml b/.forgejo/workflows/merge-requirements.yml index 7835825fec..fe18aa1139 100644 --- a/.forgejo/workflows/merge-requirements.yml +++ b/.forgejo/workflows/merge-requirements.yml @@ -1,7 +1,7 @@ # Copyright 2024 The Forgejo Authors # SPDX-License-Identifier: MIT -name: requirements +name: issue-labels on: pull_request: @@ -9,19 +9,26 @@ on: - labeled - edited - opened - - synchronize jobs: 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 container: image: 'code.forgejo.org/oci/node:20-bookworm' steps: - - name: Debug output + - name: Debug info run: | cat <<'EOF' - ${{ toJSON(github.event) }} + ${{ toJSON(github) }} EOF - name: Missing test label if: >