update
This commit is contained in:
29
.gitea/workflows/example-condition.yaml
Normal file
29
.gitea/workflows/example-condition.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
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) }}"
|
||||
|
||||
Reference in New Issue
Block a user