Add condition example
This commit is contained in:
17
.gitea/workflows/example-condition.yaml
Normal file
17
.gitea/workflows/example-condition.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
name: "Example condition"
|
||||
run-name: "Check Job condition"
|
||||
|
||||
on:
|
||||
issues:
|
||||
types:
|
||||
- labeled
|
||||
|
||||
jobs:
|
||||
check-condition:
|
||||
runs-on: sirius # docker, sirius или golang
|
||||
if: contains(github.event.issue.labels.*.name, 'bug')
|
||||
|
||||
steps:
|
||||
# Выводим текстовое сообщение
|
||||
- name: Echo test
|
||||
run: echo "Hello, ${{ toJson(gitea.event.issue }}"
|
||||
Reference in New Issue
Block a user