From bf4b910da9c2245f9eb6769059087b479a408fc0 Mon Sep 17 00:00:00 2001 From: vladislava28 Date: Tue, 25 Nov 2025 14:46:48 +0300 Subject: [PATCH 01/16] action --- .gitea/workflows/example-action.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/example-action.yaml b/.gitea/workflows/example-action.yaml index 41b34ea..faa78a0 100644 --- a/.gitea/workflows/example-action.yaml +++ b/.gitea/workflows/example-action.yaml @@ -11,10 +11,10 @@ jobs: runs-on: docker # docker, sirius или golang steps: - run: | - if [ ${{ gitea.actor }} == 'alex' ]; then + if [ ${{ gitea.actor }} == 'VlaDislava28' ]; then echo "Hello, ${{ gitea.actor }}" else - echo "Hello, student" + echo "Hello, Vlada" fi # Клонируем репозиторий для Runnera -- 2.39.5 From cb1cc8137eeaf8c21379a8707eb5a2898f560a52 Mon Sep 17 00:00:00 2001 From: vladislava28 Date: Tue, 25 Nov 2025 14:54:44 +0300 Subject: [PATCH 02/16] up --- .gitea/workflows/example-action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/example-action.yaml b/.gitea/workflows/example-action.yaml index faa78a0..cc09270 100644 --- a/.gitea/workflows/example-action.yaml +++ b/.gitea/workflows/example-action.yaml @@ -8,7 +8,7 @@ on: jobs: second-job: - runs-on: docker # docker, sirius или golang + runs-on: sirius # docker, sirius или golang steps: - run: | if [ ${{ gitea.actor }} == 'VlaDislava28' ]; then -- 2.39.5 From ba1f9da7cb279606f8424a79eb8d04436fde05cc Mon Sep 17 00:00:00 2001 From: vladislava28 Date: Tue, 25 Nov 2025 14:57:54 +0300 Subject: [PATCH 03/16] com --- .gitea/workflows/example-action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/example-action.yaml b/.gitea/workflows/example-action.yaml index cc09270..5941020 100644 --- a/.gitea/workflows/example-action.yaml +++ b/.gitea/workflows/example-action.yaml @@ -1,5 +1,5 @@ name: "Example action" -run-name: "Start example action" +run-name: "example action" on: push: -- 2.39.5 From 2e2bd2dc1fd1316c94f95c274724b0a18f1d9091 Mon Sep 17 00:00:00 2001 From: vladislava28 Date: Tue, 25 Nov 2025 15:10:34 +0300 Subject: [PATCH 04/16] com --- .gitea/workflows/example-action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/example-action.yaml b/.gitea/workflows/example-action.yaml index 5941020..cc09270 100644 --- a/.gitea/workflows/example-action.yaml +++ b/.gitea/workflows/example-action.yaml @@ -1,5 +1,5 @@ name: "Example action" -run-name: "example action" +run-name: "Start example action" on: push: -- 2.39.5 From ac0de60ec0b43c9a5df676a2ba3c6d660cbb20fd Mon Sep 17 00:00:00 2001 From: vladislava28 Date: Tue, 25 Nov 2025 15:36:59 +0300 Subject: [PATCH 05/16] cretae --- .gitea/workflows/example-action.yaml | 11 ++++++++--- .gitea/workflows/example-new.yaml | 20 ++++++++++++++++++++ 2 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 .gitea/workflows/example-new.yaml 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) }}" -- 2.39.5 From 0a31d7b7ae634691f07d09dabf0f9cee8261e54d Mon Sep 17 00:00:00 2001 From: vladislava28 Date: Tue, 25 Nov 2025 15:57:25 +0300 Subject: [PATCH 06/16] cond --- .gitea/workflows/example-action.yaml | 10 +++------- .gitea/workflows/example-condition.yaml | 4 +--- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/example-action.yaml b/.gitea/workflows/example-action.yaml index 550174d..d25f3dc 100644 --- a/.gitea/workflows/example-action.yaml +++ b/.gitea/workflows/example-action.yaml @@ -2,13 +2,9 @@ name: "Example action" run-name: "Start example action" on: - # push: - # tags: - # - v*.*.* - - delete: - tags: - - v*.*.* + push: + tags: + - v*.*.* jobs: diff --git a/.gitea/workflows/example-condition.yaml b/.gitea/workflows/example-condition.yaml index 9fa904d..5ee126f 100644 --- a/.gitea/workflows/example-condition.yaml +++ b/.gitea/workflows/example-condition.yaml @@ -4,9 +4,7 @@ run-name: "Check Job condition" on: issues: types: - - labeled - - opened - - unlabeled + - closed jobs: check-condition: -- 2.39.5 From ebf8e91ca1c45e5219177bd46accb96b8cd04ce8 Mon Sep 17 00:00:00 2001 From: vladislava28 Date: Tue, 25 Nov 2025 15:57:59 +0300 Subject: [PATCH 07/16] closed --- .gitea/workflows/example-condition.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/example-condition.yaml b/.gitea/workflows/example-condition.yaml index 5ee126f..bcee2df 100644 --- a/.gitea/workflows/example-condition.yaml +++ b/.gitea/workflows/example-condition.yaml @@ -5,6 +5,7 @@ on: issues: types: - closed + - labeled jobs: check-condition: -- 2.39.5 From 02512a4895fa9937733424e3a1ea9f5275bd3690 Mon Sep 17 00:00:00 2001 From: vladislava28 Date: Tue, 25 Nov 2025 15:59:10 +0300 Subject: [PATCH 08/16] ifs --- .gitea/workflows/example-condition.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/example-condition.yaml b/.gitea/workflows/example-condition.yaml index bcee2df..928ecb3 100644 --- a/.gitea/workflows/example-condition.yaml +++ b/.gitea/workflows/example-condition.yaml @@ -10,10 +10,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) }}" -- 2.39.5 From c6d885e0be63d786788b15ea959adb976e5cac7c Mon Sep 17 00:00:00 2001 From: vladislava28 Date: Tue, 25 Nov 2025 16:21:00 +0300 Subject: [PATCH 09/16] 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 -- 2.39.5 From 688bd3a7f92c13259f2a995b7abbf409368151a8 Mon Sep 17 00:00:00 2001 From: vladislava28 Date: Tue, 25 Nov 2025 16:22:49 +0300 Subject: [PATCH 10/16] m --- .gitea/workflows/example-condition.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/example-condition.yaml b/.gitea/workflows/example-condition.yaml index b76d511..0e321b3 100644 --- a/.gitea/workflows/example-condition.yaml +++ b/.gitea/workflows/example-condition.yaml @@ -1,5 +1,5 @@ name: "Example condition" -run-name: "Check Job condition" +run-name: "multple condition" on: issues: -- 2.39.5 From cf929cea2551ea8e64fd6b381b7f96c39b270aa4 Mon Sep 17 00:00:00 2001 From: vladislava28 Date: Tue, 25 Nov 2025 16:31:30 +0300 Subject: [PATCH 11/16] dep --- .gitea/workflows/example-condition.yaml | 54 ++++++++++++++++++++----- services.txt | 4 +- test.txt | 3 +- 3 files changed, 50 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/example-condition.yaml b/.gitea/workflows/example-condition.yaml index 0e321b3..db33f3a 100644 --- a/.gitea/workflows/example-condition.yaml +++ b/.gitea/workflows/example-condition.yaml @@ -1,5 +1,5 @@ name: "Example condition" -run-name: "multple condition" +run-name: "deply condition" on: issues: @@ -12,16 +12,52 @@ on: - services.txt branches: - main + # ПРОСТОЕ ДОПОЛНЕНИЕ: при комментарии в issue + issue_comment: + types: [created] - - jobs: check-condition: - runs-on: sirius # docker, sirius или golang - if: contains(github.event.issue.labels.*.name, 'bug') + runs-on: sirius + # ПРОСТОЕ УСЛОВИЕ: только если комментарий содержит "deploy" + if: | + github.event_name != 'issue_comment' || + contains(github.event.comment.body, 'deploy') steps: - # Выводим текстовое сообщение - - name: Echo test - if: contains(github.event.issue.labels.*.name, 'bug') - run: echo "${{ toJson(github.event.issue) }}" + - name: Process comment + run: | + if [ "${{ github.event_name }}" = "issue_comment" ]; then + echo "Deploy command detected in comment!" + else + echo "Regular event: ${{ github.event_name }}" + fi + + +# name: "Example condition" +# run-name: "multple condition" + +# on: +# issues: +# types: +# - closed +# - labeled +# push: +# paths: +# - test.txt +# - services.txt +# branches: +# - main + + + +# 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) }}" diff --git a/services.txt b/services.txt index f9becf6..34cdfc0 100644 --- a/services.txt +++ b/services.txt @@ -1,3 +1,5 @@ micro like -cool \ No newline at end of file +cool + +djgdhhudhuehjkeshjd \ No newline at end of file diff --git a/test.txt b/test.txt index 07f523e..d57ddec 100644 --- a/test.txt +++ b/test.txt @@ -1 +1,2 @@ -hello, myself \ No newline at end of file +hello, myself +dejdjkdwkaj \ No newline at end of file -- 2.39.5 From 5b2add6c6f6483ae9f48c73f9123cdadbeb592ea Mon Sep 17 00:00:00 2001 From: vladislava28 Date: Tue, 25 Nov 2025 16:35:30 +0300 Subject: [PATCH 12/16] dhjhjsd --- .gitea/workflows/example-condition.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitea/workflows/example-condition.yaml b/.gitea/workflows/example-condition.yaml index db33f3a..fc5b77c 100644 --- a/.gitea/workflows/example-condition.yaml +++ b/.gitea/workflows/example-condition.yaml @@ -12,14 +12,12 @@ on: - services.txt branches: - main - # ПРОСТОЕ ДОПОЛНЕНИЕ: при комментарии в issue issue_comment: types: [created] jobs: check-condition: runs-on: sirius - # ПРОСТОЕ УСЛОВИЕ: только если комментарий содержит "deploy" if: | github.event_name != 'issue_comment' || contains(github.event.comment.body, 'deploy') -- 2.39.5 From 00f78899e145fff03bd607984c7a00b5305ce2f9 Mon Sep 17 00:00:00 2001 From: vladislava28 Date: Tue, 25 Nov 2025 16:49:28 +0300 Subject: [PATCH 13/16] all --- .gitea/workflows/example-condition.yaml | 53 +++++++++++++++++++------ 1 file changed, 41 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/example-condition.yaml b/.gitea/workflows/example-condition.yaml index fc5b77c..f9c7899 100644 --- a/.gitea/workflows/example-condition.yaml +++ b/.gitea/workflows/example-condition.yaml @@ -1,5 +1,5 @@ name: "Example condition" -run-name: "deply condition" +run-name: "deploy all condition" on: issues: @@ -15,21 +15,50 @@ on: issue_comment: types: [created] + +if: github.event_name != 'issue_comment' || github.actor == 'Vlabislava28' + jobs: check-condition: runs-on: sirius - if: | - github.event_name != 'issue_comment' || - contains(github.event.comment.body, 'deploy') - steps: - - name: Process comment - run: | - if [ "${{ github.event_name }}" = "issue_comment" ]; then - echo "Deploy command detected in comment!" - else - echo "Regular event: ${{ github.event_name }}" - fi + - name: Echo test + run: echo "Этот шаг выполнится только при выполнении условия above" + + + +# name: "Example condition" +# run-name: "deply condition" + +# on: +# issues: +# types: +# - closed +# - labeled +# push: +# paths: +# - test.txt +# - services.txt +# branches: +# - main +# issue_comment: +# types: [created] + +# jobs: +# check-condition: +# runs-on: sirius +# if: | +# github.event_name != 'issue_comment' || +# contains(github.event.comment.body, 'deploy') + +# steps: +# - name: Process comment +# run: | +# if [ "${{ github.event_name }}" = "issue_comment" ]; then +# echo "Deploy command detected in comment!" +# else +# echo "Regular event: ${{ github.event_name }}" +# fi # name: "Example condition" -- 2.39.5 From a5100b94660bc1cd8504d722a7b293864bc81f5c Mon Sep 17 00:00:00 2001 From: vladislava28 Date: Tue, 25 Nov 2025 16:51:00 +0300 Subject: [PATCH 14/16] h --- services.txt | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 services.txt diff --git a/services.txt b/services.txt deleted file mode 100644 index 34cdfc0..0000000 --- a/services.txt +++ /dev/null @@ -1,5 +0,0 @@ -micro -like -cool - -djgdhhudhuehjkeshjd \ No newline at end of file -- 2.39.5 From b5d83dc35144550a7dd0d9222fc346fef6c92a14 Mon Sep 17 00:00:00 2001 From: vladislava28 Date: Tue, 25 Nov 2025 16:54:51 +0300 Subject: [PATCH 15/16] yt --- .gitea/workflows/example-condition.yaml | 6 +++++- services.txt | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 services.txt diff --git a/.gitea/workflows/example-condition.yaml b/.gitea/workflows/example-condition.yaml index f9c7899..b850982 100644 --- a/.gitea/workflows/example-condition.yaml +++ b/.gitea/workflows/example-condition.yaml @@ -13,7 +13,8 @@ on: branches: - main issue_comment: - types: [created] + types: + - deploy if: github.event_name != 'issue_comment' || github.actor == 'Vlabislava28' @@ -24,6 +25,9 @@ jobs: steps: - name: Echo test run: echo "Этот шаг выполнится только при выполнении условия above" + - name: Echo test + 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..551ae9a --- /dev/null +++ b/services.txt @@ -0,0 +1 @@ +fkjshjshfhsj \ No newline at end of file -- 2.39.5 From e14114c6a7189891d0d517ce95a07a572c4d2dbb Mon Sep 17 00:00:00 2001 From: vladislava28 Date: Tue, 25 Nov 2025 16:56:57 +0300 Subject: [PATCH 16/16] dhh --- .gitea/workflows/example-condition.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitea/workflows/example-condition.yaml b/.gitea/workflows/example-condition.yaml index b850982..81545a7 100644 --- a/.gitea/workflows/example-condition.yaml +++ b/.gitea/workflows/example-condition.yaml @@ -16,12 +16,10 @@ on: types: - deploy - -if: github.event_name != 'issue_comment' || github.actor == 'Vlabislava28' - jobs: check-condition: runs-on: sirius + if: contains(github.event.issue.labels.*.name, 'bug') steps: - name: Echo test run: echo "Этот шаг выполнится только при выполнении условия above" -- 2.39.5