From c6d885e0be63d786788b15ea959adb976e5cac7c Mon Sep 17 00:00:00 2001 From: vladislava28 Date: Tue, 25 Nov 2025 16:21:00 +0300 Subject: [PATCH] new --- .gitea/workflows/example-condition.yaml | 8 ++++++++ .gitea/workflows/example-new.yaml | 6 +++--- services.txt | 3 +++ test.txt | 5 +---- 4 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 services.txt diff --git a/.gitea/workflows/example-condition.yaml b/.gitea/workflows/example-condition.yaml index 928ecb3..b76d511 100644 --- a/.gitea/workflows/example-condition.yaml +++ b/.gitea/workflows/example-condition.yaml @@ -6,7 +6,15 @@ on: types: - closed - labeled + push: + paths: + - test.txt + - services.txt + branches: + - main + + jobs: check-condition: runs-on: sirius # docker, sirius или golang diff --git a/.gitea/workflows/example-new.yaml b/.gitea/workflows/example-new.yaml index 9fa904d..2ad888c 100644 --- a/.gitea/workflows/example-new.yaml +++ b/.gitea/workflows/example-new.yaml @@ -1,5 +1,5 @@ name: "Example condition" -run-name: "Check Job condition" +run-name: "condition 2" on: issues: @@ -11,10 +11,10 @@ on: jobs: check-condition: runs-on: sirius # docker, sirius или golang - # if: contains(github.event.issue.labels.*.name, 'bug') + if: contains(github.event.issue.labels.*.name, 'bug') steps: # Выводим текстовое сообщение - name: Echo test - # if: contains(github.event.issue.labels.*.name, 'bug') + if: contains(github.event.issue.labels.*.name, 'bug') run: echo "${{ toJson(github.event.issue) }}" diff --git a/services.txt b/services.txt new file mode 100644 index 0000000..f9becf6 --- /dev/null +++ b/services.txt @@ -0,0 +1,3 @@ +micro +like +cool \ No newline at end of file diff --git a/test.txt b/test.txt index 5005bd2..07f523e 100644 --- a/test.txt +++ b/test.txt @@ -1,4 +1 @@ -hdjksfh adhsjfk hadslkjh -jkfbjkasdbf asdj fhaksdj hf jklasdl - -sakfdh kashf khaslfkh aksdfhljh \ No newline at end of file +hello, myself \ No newline at end of file