0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 15:23:14 -05:00

Merge pull request 'chore(ci): common issue-labels name for all related workflows' (#6182) from earl-warren/forgejo:wip-labels into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6182
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
This commit is contained in:
Earl Warren 2024-12-09 05:18:04 +00:00
commit a7b3ec382d
4 changed files with 6 additions and 20 deletions

View file

@ -22,6 +22,8 @@
# `backport/v1.21` label on a merged pull request that can be backported # `backport/v1.21` label on a merged pull request that can be backported
# without conflict. # without conflict.
# #
name: issue-labels
on: on:
pull_request_target: pull_request_target:
types: types:

View file

@ -14,7 +14,7 @@
# - after it is merged, double check it works by setting the # - after it is merged, double check it works by setting the
# run-end-to-end-test on a pull request (any pull request will do) # run-end-to-end-test on a pull request (any pull request will do)
# #
name: end-to-end name: issue-labels
on: on:
push: push:
@ -25,24 +25,6 @@ on:
- labeled - labeled
jobs: jobs:
info:
if: vars.ROLE == 'forgejo-coding'
runs-on: docker
container:
image: code.forgejo.org/oci/node:20-bookworm
steps:
- name: event
run: |
echo github.event.pull_request.head.repo.fork = ${{ github.event.pull_request.head.repo.fork }}
echo github.event.action = ${{ github.event.action }}
echo github.event.label
cat <<'EOF'
${{ toJSON(github.event.label) }}
EOF
cat <<'EOF'
${{ toJSON(github.event) }}
EOF
cascade: cascade:
if: > if: >
vars.ROLE == 'forgejo-coding' && ( vars.ROLE == 'forgejo-coding' && (

View file

@ -21,7 +21,7 @@ jobs:
- name: Debug output - name: Debug output
run: | run: |
cat <<'EOF' cat <<'EOF'
${{ toJSON(github.event) }} ${{ toJSON(github) }}
EOF EOF
- name: Missing test label - name: Missing test label
if: > if: >

View file

@ -1,3 +1,5 @@
name: issue-labels
on: on:
pull_request_target: pull_request_target:
types: types: