From 65c8b55f542b772171a8d74caf289172cddc28be Mon Sep 17 00:00:00 2001 From: Alex Matsuev Date: Tue, 25 Nov 2025 10:19:33 +0300 Subject: [PATCH] Add condition example --- .gitea/workflows/example-condition.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .gitea/workflows/example-condition.yaml diff --git a/.gitea/workflows/example-condition.yaml b/.gitea/workflows/example-condition.yaml new file mode 100644 index 0000000..15df41a --- /dev/null +++ b/.gitea/workflows/example-condition.yaml @@ -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 }}"