Files
actions-laba-1/.gitea/workflows/example-condition.yaml
2025-11-25 15:01:10 +03:00

26 lines
626 B
YAML

name: "Example condition"
run-name: "Check Job condition"
on:
issues:
types:
- labeled
- opened
- unlabeled
jobs:
check-condition:
runs-on: sirius # docker, sirius или golang
# if: contains(github.event.issue.labels.*.name, 'bug')
steps:
# Поздароваемся
- name: Hello
if: github.event.issue.user.login == 'alex'
run: echo "Hello, Alex!!!"
# Выводим текстовое сообщение
- name: Echo test
if: contains(github.event.issue.labels.*.name, 'bug')
run: echo "${{ toJson(github.event.issue) }}"