diff --git a/.gitea/workflows/example-action.yaml b/.gitea/workflows/example-action.yaml index cc09270..550174d 100644 --- a/.gitea/workflows/example-action.yaml +++ b/.gitea/workflows/example-action.yaml @@ -2,9 +2,14 @@ name: "Example action" run-name: "Start example action" on: - push: - tags: - - v*.*.* + # push: + # tags: + # - v*.*.* + + delete: + tags: + - v*.*.* + jobs: second-job: diff --git a/.gitea/workflows/example-new.yaml b/.gitea/workflows/example-new.yaml new file mode 100644 index 0000000..9fa904d --- /dev/null +++ b/.gitea/workflows/example-new.yaml @@ -0,0 +1,20 @@ +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: Echo test + # if: contains(github.event.issue.labels.*.name, 'bug') + run: echo "${{ toJson(github.event.issue) }}"