30 lines
650 B
YAML
30 lines
650 B
YAML
name: "Example condition"
|
|
run-name: "deploy all condition"
|
|
|
|
on:
|
|
issues:
|
|
types:
|
|
- closed
|
|
- labeled
|
|
push:
|
|
paths:
|
|
- test.txt
|
|
- services.txt
|
|
branches:
|
|
- main
|
|
issue_comment:
|
|
types:
|
|
- created
|
|
|
|
jobs:
|
|
check-condition:
|
|
runs-on: golang
|
|
if: contains(github.event.issue.labels.*.name, 'bug')
|
|
steps:
|
|
- name: Echo test
|
|
run: echo "Этот шаг выполнится только при выполнении условия above"
|
|
- name: Echo test
|
|
if: contains(github.event.issue.labels.*.name, 'bug')
|
|
run: echo "${{ toJson(github.event.issue) }}"
|
|
|