From cee776d263596fc696d3907a92fcb92c453571c7 Mon Sep 17 00:00:00 2001 From: Alex Matsuev Date: Tue, 25 Nov 2025 09:25:37 +0300 Subject: [PATCH 01/19] Update action --- .gitea/workflows/example-action.yaml | 19 ++- gitea.json | 230 +++++++++++++++++++++++++++ 2 files changed, 248 insertions(+), 1 deletion(-) create mode 100644 gitea.json diff --git a/.gitea/workflows/example-action.yaml b/.gitea/workflows/example-action.yaml index cd137c3..6e0cb12 100644 --- a/.gitea/workflows/example-action.yaml +++ b/.gitea/workflows/example-action.yaml @@ -3,18 +3,31 @@ run-name: "Start example action" on: push: + tags: + - start jobs: second-job: runs-on: docker # docker, sirius или golang steps: + - run: | + if [ ${{ gitea.actor }} == 'alex' ]; then + echo "Hello, ${{ gitea.actor }}" + else + echo "Hello, student" + fi + # Клонируем репозиторий для Runnera - name: Checkout rpository uses: actions/checkout@v6 # Выводим текстовое сообщение - name: Echo test - run: echo "Hello!" + run: echo "Hello, ${{ gitea.actor }}" + + # Выводим путь к репозиторию + - name: Repo name + run: echo "Hello, ${{ gitea.repository }}" # Выводим переменные окружения - name: Show environment @@ -23,3 +36,7 @@ jobs: # Выводим контекст Gitea в формате JSON - name: Show Gitea context run: echo "${{ toJson(gitea) }}" + + # Выводим контекст Gihub в формате JSON + - name: Show Gitea context + run: echo "${{ toJson(github) }}" diff --git a/gitea.json b/gitea.json new file mode 100644 index 0000000..55a2d47 --- /dev/null +++ b/gitea.json @@ -0,0 +1,230 @@ +{ + event: { + after: b231032a6e795e7a7b0420e9cdf70290a1b64f62, + before: 10dae7e9cad3c5211aa8b61fb8f01a9359ed09fa, + commits: [ + { + added: [], + author: { + email: alex.matsuev@gmail.com, + name: Alex Matsuev, + username: alex + }, + committer: { + email: alex.matsuev@gmail.com, + name: Alex Matsuev, + username: alex + }, + id: b231032a6e795e7a7b0420e9cdf70290a1b64f62, + message: Upate readme.mdn, + modified: [ + .gitea/workflows/example-action.yaml, + README.md + ], + removed: [], + timestamp: 2025-11-25T09:04:57+03:00, + url: https://sirius.klsh.ru/sirius/actions-laba-1/commit/b231032a6e795e7a7b0420e9cdf70290a1b64f62, + verification: null + } + ], + compare_url: https://sirius.klsh.ru/sirius/actions-laba-1/compare/10dae7e9cad3c5211aa8b61fb8f01a9359ed09fa...b231032a6e795e7a7b0420e9cdf70290a1b64f62, + head_commit: { + added: [], + author: { + email: alex.matsuev@gmail.com, + name: Alex Matsuev, + username: alex + }, + committer: { + email: alex.matsuev@gmail.com, + name: Alex Matsuev, + username: alex + }, + id: b231032a6e795e7a7b0420e9cdf70290a1b64f62, + message: Upate readme.mdn, + modified: [ + .gitea/workflows/example-action.yaml, + README.md + ], + removed: [], + timestamp: 2025-11-25T09:04:57+03:00, + url: https://sirius.klsh.ru/sirius/actions-laba-1/commit/b231032a6e795e7a7b0420e9cdf70290a1b64f62, + verification: null + }, + pusher: { + active: false, + avatar_url: https://sirius.klsh.ru/avatars/bff9dcfafc23369ba262f76871b9e333ea23e2b923f10f93fc90e70c43c45d42, + created: 2025-11-21T15:58:52Z, + description: , + email: alex@noreply.localhost, + followers_count: 0, + following_count: 0, + full_name: , + html_url: https://sirius.klsh.ru/alex, + id: 2, + is_admin: false, + language: , + last_login: 0001-01-01T00:00:00Z, + location: , + login: alex, + login_name: , + prohibit_login: false, + restricted: false, + source_id: 0, + starred_repos_count: 0, + username: alex, + visibility: public, + website: + }, + ref: refs/heads/main, + repository: { + allow_fast_forward_only_merge: true, + allow_manual_merge: false, + allow_merge_commits: true, + allow_rebase: true, + allow_rebase_explicit: true, + allow_rebase_update: true, + allow_squash_merge: true, + archived: false, + archived_at: 1970-01-01T00:00:00Z, + autodetect_manual_merge: false, + avatar_url: , + clone_url: https://sirius.klsh.ru/sirius/actions-laba-1.git, + created_at: 2025-11-24T12:20:04Z, + default_allow_maintainer_edit: false, + default_branch: main, + default_delete_branch_after_merge: false, + default_merge_style: merge, + description: , + empty: false, + fork: false, + forks_count: 0, + full_name: sirius/actions-laba-1, + has_actions: true, + has_code: false, + has_issues: true, + has_packages: true, + has_projects: true, + has_pull_requests: true, + has_releases: true, + has_wiki: true, + html_url: https://sirius.klsh.ru/sirius/actions-laba-1, + id: 10, + ignore_whitespace_conflicts: false, + internal: false, + internal_tracker: { + allow_only_contributors_to_track_time: true, + enable_issue_dependencies: true, + enable_time_tracker: false + }, + language: , + languages_url: https://sirius.klsh.ru/api/v1/repos/sirius/actions-laba-1/languages, + licenses: [], + link: , + mirror: false, + mirror_interval: , + mirror_updated: 0001-01-01T00:00:00Z, + name: actions-laba-1, + object_format_name: sha1, + open_issues_count: 1, + open_pr_counter: 0, + original_url: , + owner: { + active: false, + avatar_url: https://sirius.klsh.ru/avatars/093f966b4d14b19adf2835e4775e3aee, + created: 2025-11-21T16:11:41Z, + description: , + email: , + followers_count: 0, + following_count: 0, + full_name: , + html_url: https://sirius.klsh.ru/sirius, + id: 3, + is_admin: false, + language: , + last_login: 0001-01-01T00:00:00Z, + location: , + login: sirius, + login_name: , + prohibit_login: false, + restricted: false, + source_id: 0, + starred_repos_count: 0, + username: sirius, + visibility: public, + website: + }, + permissions: { + admin: true, + pull: true, + push: true + }, + private: false, + projects_mode: all, + release_counter: 0, + size: 33, + ssh_url: git@sirius.klsh.ru:sirius/actions-laba-1.git, + stars_count: 0, + template: false, + topics: [], + updated_at: 2025-11-25T06:00:34Z, + url: https://sirius.klsh.ru/api/v1/repos/sirius/actions-laba-1, + watchers_count: 25, + website: + }, + sender: { + active: false, + avatar_url: https://sirius.klsh.ru/avatars/bff9dcfafc23369ba262f76871b9e333ea23e2b923f10f93fc90e70c43c45d42, + created: 2025-11-21T15:58:52Z, + description: , + email: alex@noreply.localhost, + followers_count: 0, + following_count: 0, + full_name: , + html_url: https://sirius.klsh.ru/alex, + id: 2, + is_admin: false, + language: , + last_login: 0001-01-01T00:00:00Z, + location: , + login: alex, + login_name: , + prohibit_login: false, + restricted: false, + source_id: 0, + starred_repos_count: 0, + username: alex, + visibility: public, + website: + }, + total_commits: 0 + }, + event_path: /var/run/act/workflow/event.json, + workflow: Example action, + run_id: 101, + run_number: 10, + actor: alex, + repository: sirius/actions-laba-1, + event_name: push, + sha: b231032a6e795e7a7b0420e9cdf70290a1b64f62, + ref: refs/heads/main, + ref_name: main, + ref_type: branch, + head_ref: , + base_ref: , + token: ***, + workspace: /workspace/sirius/actions-laba-1, + action: 3, + action_path: , + action_ref: , + action_repository: , + job: second-job, + job_name: , + repository_owner: sirius, + retention_days: , + runner_perflog: /dev/null, + runner_tracking_id: , + server_url: https://sirius.klsh.ru, + api_url: https://sirius.klsh.ru/api/v1, + graphql_url: +} \ No newline at end of file From a8cbb476bafb328ac253335b46397b2031a22722 Mon Sep 17 00:00:00 2001 From: Alex Matsuev Date: Tue, 25 Nov 2025 09:27:13 +0300 Subject: [PATCH 02/19] Update action --- .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 6e0cb12..41b34ea 100644 --- a/.gitea/workflows/example-action.yaml +++ b/.gitea/workflows/example-action.yaml @@ -4,7 +4,7 @@ run-name: "Start example action" on: push: tags: - - start + - v*.*.* jobs: second-job: From 65c8b55f542b772171a8d74caf289172cddc28be Mon Sep 17 00:00:00 2001 From: Alex Matsuev Date: Tue, 25 Nov 2025 10:19:33 +0300 Subject: [PATCH 03/19] 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 }}" From 7cca6f856ddfbceffd3ed149b15a6bc569a9e6ee Mon Sep 17 00:00:00 2001 From: Alex Matsuev Date: Tue, 25 Nov 2025 10:25:47 +0300 Subject: [PATCH 04/19] Update condition --- .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 15df41a..ac85310 100644 --- a/.gitea/workflows/example-condition.yaml +++ b/.gitea/workflows/example-condition.yaml @@ -14,4 +14,4 @@ jobs: steps: # Выводим текстовое сообщение - name: Echo test - run: echo "Hello, ${{ toJson(gitea.event.issue }}" + run: echo ${{ toJson(gitea.event.issue }} From c810bb889ae81efdb63d994dfea5d01f1be1593b Mon Sep 17 00:00:00 2001 From: Alex Matsuev Date: Tue, 25 Nov 2025 10:28:18 +0300 Subject: [PATCH 05/19] Update condition --- .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 ac85310..7ffc193 100644 --- a/.gitea/workflows/example-condition.yaml +++ b/.gitea/workflows/example-condition.yaml @@ -14,4 +14,4 @@ jobs: steps: # Выводим текстовое сообщение - name: Echo test - run: echo ${{ toJson(gitea.event.issue }} + run: echo ${{ toJson(gitea.event.issue) }} From 9ff4134367af3df00be600178dce07cf44d50998 Mon Sep 17 00:00:00 2001 From: Alex Matsuev Date: Tue, 25 Nov 2025 10:29:07 +0300 Subject: [PATCH 06/19] Update condition --- .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 7ffc193..92092d2 100644 --- a/.gitea/workflows/example-condition.yaml +++ b/.gitea/workflows/example-condition.yaml @@ -14,4 +14,4 @@ jobs: steps: # Выводим текстовое сообщение - name: Echo test - run: echo ${{ toJson(gitea.event.issue) }} + run: echo "${{ toJson(gitea.event.issue) }}" From 76841ae85a21e4084fb88553c045ff7fa69f7d9c Mon Sep 17 00:00:00 2001 From: Alex Matsuev Date: Tue, 25 Nov 2025 11:27:14 +0300 Subject: [PATCH 07/19] Add dispatch action --- .gitea/workflows/example-dispatch.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .gitea/workflows/example-dispatch.yaml diff --git a/.gitea/workflows/example-dispatch.yaml b/.gitea/workflows/example-dispatch.yaml new file mode 100644 index 0000000..42ac3f6 --- /dev/null +++ b/.gitea/workflows/example-dispatch.yaml @@ -0,0 +1,13 @@ +name: "Example dispatch" + +on: + workflow_dispatch: + +jobs: + echo-test: + runs-on: sirius # docker, sirius или golang + + steps: + # Выводим текстовое сообщение + - name: Echo test + run: echo "Hello!" From b0245c89da6bb537ad8c278f427d8fbb2c02d1b1 Mon Sep 17 00:00:00 2001 From: Alex Matsuev Date: Tue, 25 Nov 2025 11:29:54 +0300 Subject: [PATCH 08/19] Update dispatch action --- .gitea/workflows/example-dispatch.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/example-dispatch.yaml b/.gitea/workflows/example-dispatch.yaml index 42ac3f6..466b9cc 100644 --- a/.gitea/workflows/example-dispatch.yaml +++ b/.gitea/workflows/example-dispatch.yaml @@ -11,3 +11,8 @@ jobs: # Выводим текстовое сообщение - name: Echo test run: echo "Hello!" + + - uses: tale/kubectl-action@v1 + with: + base64-kube-config: ${{ secrets.KUBE_CONFIG }} + - run: kubectl get pods From e42e641898a54b7a6f793b1889b31d0de91b22c5 Mon Sep 17 00:00:00 2001 From: Alex Matsuev Date: Tue, 25 Nov 2025 11:35:55 +0300 Subject: [PATCH 09/19] Update dispatch action --- .gitea/workflows/example-dispatch.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/example-dispatch.yaml b/.gitea/workflows/example-dispatch.yaml index 466b9cc..c5e820f 100644 --- a/.gitea/workflows/example-dispatch.yaml +++ b/.gitea/workflows/example-dispatch.yaml @@ -5,7 +5,7 @@ on: jobs: echo-test: - runs-on: sirius # docker, sirius или golang + runs-on: docker # docker, sirius или golang steps: # Выводим текстовое сообщение From 90ebee91aecd8159806e79e50e386dd56624c5af Mon Sep 17 00:00:00 2001 From: Alex Matsuev Date: Tue, 25 Nov 2025 11:38:37 +0300 Subject: [PATCH 10/19] Update dispatch action --- .gitea/workflows/example-dispatch.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/example-dispatch.yaml b/.gitea/workflows/example-dispatch.yaml index c5e820f..d74cf98 100644 --- a/.gitea/workflows/example-dispatch.yaml +++ b/.gitea/workflows/example-dispatch.yaml @@ -12,7 +12,8 @@ jobs: - name: Echo test run: echo "Hello!" - - uses: tale/kubectl-action@v1 + - name: Install kubectl action + uses: tale/kubectl-action@v1 with: base64-kube-config: ${{ secrets.KUBE_CONFIG }} - run: kubectl get pods From a485f333a471a5d959a0213388349f1a79e3cb08 Mon Sep 17 00:00:00 2001 From: Alex Matsuev Date: Tue, 25 Nov 2025 13:36:09 +0300 Subject: [PATCH 11/19] Delete gitea.json --- gitea.json | 230 ----------------------------------------------------- 1 file changed, 230 deletions(-) delete mode 100644 gitea.json diff --git a/gitea.json b/gitea.json deleted file mode 100644 index 55a2d47..0000000 --- a/gitea.json +++ /dev/null @@ -1,230 +0,0 @@ -{ - event: { - after: b231032a6e795e7a7b0420e9cdf70290a1b64f62, - before: 10dae7e9cad3c5211aa8b61fb8f01a9359ed09fa, - commits: [ - { - added: [], - author: { - email: alex.matsuev@gmail.com, - name: Alex Matsuev, - username: alex - }, - committer: { - email: alex.matsuev@gmail.com, - name: Alex Matsuev, - username: alex - }, - id: b231032a6e795e7a7b0420e9cdf70290a1b64f62, - message: Upate readme.mdn, - modified: [ - .gitea/workflows/example-action.yaml, - README.md - ], - removed: [], - timestamp: 2025-11-25T09:04:57+03:00, - url: https://sirius.klsh.ru/sirius/actions-laba-1/commit/b231032a6e795e7a7b0420e9cdf70290a1b64f62, - verification: null - } - ], - compare_url: https://sirius.klsh.ru/sirius/actions-laba-1/compare/10dae7e9cad3c5211aa8b61fb8f01a9359ed09fa...b231032a6e795e7a7b0420e9cdf70290a1b64f62, - head_commit: { - added: [], - author: { - email: alex.matsuev@gmail.com, - name: Alex Matsuev, - username: alex - }, - committer: { - email: alex.matsuev@gmail.com, - name: Alex Matsuev, - username: alex - }, - id: b231032a6e795e7a7b0420e9cdf70290a1b64f62, - message: Upate readme.mdn, - modified: [ - .gitea/workflows/example-action.yaml, - README.md - ], - removed: [], - timestamp: 2025-11-25T09:04:57+03:00, - url: https://sirius.klsh.ru/sirius/actions-laba-1/commit/b231032a6e795e7a7b0420e9cdf70290a1b64f62, - verification: null - }, - pusher: { - active: false, - avatar_url: https://sirius.klsh.ru/avatars/bff9dcfafc23369ba262f76871b9e333ea23e2b923f10f93fc90e70c43c45d42, - created: 2025-11-21T15:58:52Z, - description: , - email: alex@noreply.localhost, - followers_count: 0, - following_count: 0, - full_name: , - html_url: https://sirius.klsh.ru/alex, - id: 2, - is_admin: false, - language: , - last_login: 0001-01-01T00:00:00Z, - location: , - login: alex, - login_name: , - prohibit_login: false, - restricted: false, - source_id: 0, - starred_repos_count: 0, - username: alex, - visibility: public, - website: - }, - ref: refs/heads/main, - repository: { - allow_fast_forward_only_merge: true, - allow_manual_merge: false, - allow_merge_commits: true, - allow_rebase: true, - allow_rebase_explicit: true, - allow_rebase_update: true, - allow_squash_merge: true, - archived: false, - archived_at: 1970-01-01T00:00:00Z, - autodetect_manual_merge: false, - avatar_url: , - clone_url: https://sirius.klsh.ru/sirius/actions-laba-1.git, - created_at: 2025-11-24T12:20:04Z, - default_allow_maintainer_edit: false, - default_branch: main, - default_delete_branch_after_merge: false, - default_merge_style: merge, - description: , - empty: false, - fork: false, - forks_count: 0, - full_name: sirius/actions-laba-1, - has_actions: true, - has_code: false, - has_issues: true, - has_packages: true, - has_projects: true, - has_pull_requests: true, - has_releases: true, - has_wiki: true, - html_url: https://sirius.klsh.ru/sirius/actions-laba-1, - id: 10, - ignore_whitespace_conflicts: false, - internal: false, - internal_tracker: { - allow_only_contributors_to_track_time: true, - enable_issue_dependencies: true, - enable_time_tracker: false - }, - language: , - languages_url: https://sirius.klsh.ru/api/v1/repos/sirius/actions-laba-1/languages, - licenses: [], - link: , - mirror: false, - mirror_interval: , - mirror_updated: 0001-01-01T00:00:00Z, - name: actions-laba-1, - object_format_name: sha1, - open_issues_count: 1, - open_pr_counter: 0, - original_url: , - owner: { - active: false, - avatar_url: https://sirius.klsh.ru/avatars/093f966b4d14b19adf2835e4775e3aee, - created: 2025-11-21T16:11:41Z, - description: , - email: , - followers_count: 0, - following_count: 0, - full_name: , - html_url: https://sirius.klsh.ru/sirius, - id: 3, - is_admin: false, - language: , - last_login: 0001-01-01T00:00:00Z, - location: , - login: sirius, - login_name: , - prohibit_login: false, - restricted: false, - source_id: 0, - starred_repos_count: 0, - username: sirius, - visibility: public, - website: - }, - permissions: { - admin: true, - pull: true, - push: true - }, - private: false, - projects_mode: all, - release_counter: 0, - size: 33, - ssh_url: git@sirius.klsh.ru:sirius/actions-laba-1.git, - stars_count: 0, - template: false, - topics: [], - updated_at: 2025-11-25T06:00:34Z, - url: https://sirius.klsh.ru/api/v1/repos/sirius/actions-laba-1, - watchers_count: 25, - website: - }, - sender: { - active: false, - avatar_url: https://sirius.klsh.ru/avatars/bff9dcfafc23369ba262f76871b9e333ea23e2b923f10f93fc90e70c43c45d42, - created: 2025-11-21T15:58:52Z, - description: , - email: alex@noreply.localhost, - followers_count: 0, - following_count: 0, - full_name: , - html_url: https://sirius.klsh.ru/alex, - id: 2, - is_admin: false, - language: , - last_login: 0001-01-01T00:00:00Z, - location: , - login: alex, - login_name: , - prohibit_login: false, - restricted: false, - source_id: 0, - starred_repos_count: 0, - username: alex, - visibility: public, - website: - }, - total_commits: 0 - }, - event_path: /var/run/act/workflow/event.json, - workflow: Example action, - run_id: 101, - run_number: 10, - actor: alex, - repository: sirius/actions-laba-1, - event_name: push, - sha: b231032a6e795e7a7b0420e9cdf70290a1b64f62, - ref: refs/heads/main, - ref_name: main, - ref_type: branch, - head_ref: , - base_ref: , - token: ***, - workspace: /workspace/sirius/actions-laba-1, - action: 3, - action_path: , - action_ref: , - action_repository: , - job: second-job, - job_name: , - repository_owner: sirius, - retention_days: , - runner_perflog: /dev/null, - runner_tracking_id: , - server_url: https://sirius.klsh.ru, - api_url: https://sirius.klsh.ru/api/v1, - graphql_url: -} \ No newline at end of file From 4b7b86126380b0437d127e9885adaeaa3641e4a6 Mon Sep 17 00:00:00 2001 From: Alex Matsuev Date: Tue, 25 Nov 2025 13:57:00 +0300 Subject: [PATCH 12/19] Add test.txt --- .gitea/workflows/example-condition.yaml | 14 +++++++++++--- test.txt | 1 + 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 test.txt diff --git a/.gitea/workflows/example-condition.yaml b/.gitea/workflows/example-condition.yaml index 92092d2..5883aef 100644 --- a/.gitea/workflows/example-condition.yaml +++ b/.gitea/workflows/example-condition.yaml @@ -2,9 +2,17 @@ name: "Example condition" run-name: "Check Job condition" on: - issues: - types: - - labeled + # issues: + # types: + # - labeled + # - opened + # - unlabeled + push: + branches-ignore: + - main + - dev + paths: + - ./test.txt jobs: check-condition: diff --git a/test.txt b/test.txt new file mode 100644 index 0000000..9eb6e28 --- /dev/null +++ b/test.txt @@ -0,0 +1 @@ +hdjksfh adhsjfk hadslkjh \ No newline at end of file From 599156f8b3ac62ce476691085db432bf6128c162 Mon Sep 17 00:00:00 2001 From: Alex Matsuev Date: Tue, 25 Nov 2025 13:57:57 +0300 Subject: [PATCH 13/19] Update action --- .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 5883aef..b94c5aa 100644 --- a/.gitea/workflows/example-condition.yaml +++ b/.gitea/workflows/example-condition.yaml @@ -12,7 +12,7 @@ on: - main - dev paths: - - ./test.txt + - test.txt jobs: check-condition: From 946568665d09995cdc9fc74160076affc34a4c52 Mon Sep 17 00:00:00 2001 From: Alex Matsuev Date: Tue, 25 Nov 2025 13:58:31 +0300 Subject: [PATCH 14/19] Update test.txt --- test.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test.txt b/test.txt index 9eb6e28..5378207 100644 --- a/test.txt +++ b/test.txt @@ -1 +1,2 @@ -hdjksfh adhsjfk hadslkjh \ No newline at end of file +hdjksfh adhsjfk hadslkjh +jkfbjkasdbf asdj fhaksdj hf jklasdl \ No newline at end of file From 5a9d16de59173e59082599e7260f1f6c2e5f8c29 Mon Sep 17 00:00:00 2001 From: Alex Matsuev Date: Tue, 25 Nov 2025 13:59:11 +0300 Subject: [PATCH 15/19] Update action --- .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 b94c5aa..b72cc66 100644 --- a/.gitea/workflows/example-condition.yaml +++ b/.gitea/workflows/example-condition.yaml @@ -8,7 +8,7 @@ on: # - opened # - unlabeled push: - branches-ignore: + branches: - main - dev paths: From 74519aabc1050b409a520d6706dcda6caa5e8f58 Mon Sep 17 00:00:00 2001 From: Alex Matsuev Date: Tue, 25 Nov 2025 13:59:41 +0300 Subject: [PATCH 16/19] Update test.txt --- test.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test.txt b/test.txt index 5378207..5005bd2 100644 --- a/test.txt +++ b/test.txt @@ -1,2 +1,4 @@ hdjksfh adhsjfk hadslkjh -jkfbjkasdbf asdj fhaksdj hf jklasdl \ No newline at end of file +jkfbjkasdbf asdj fhaksdj hf jklasdl + +sakfdh kashf khaslfkh aksdfhljh \ No newline at end of file From 4e2fe2cd8833e3e2bb5bb9f428ae7d8b842eb125 Mon Sep 17 00:00:00 2001 From: Alex Matsuev Date: Tue, 25 Nov 2025 14:00:34 +0300 Subject: [PATCH 17/19] Update --- .gitea/workflows/example-condition.yaml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/example-condition.yaml b/.gitea/workflows/example-condition.yaml index b72cc66..b506235 100644 --- a/.gitea/workflows/example-condition.yaml +++ b/.gitea/workflows/example-condition.yaml @@ -2,17 +2,11 @@ name: "Example condition" run-name: "Check Job condition" on: - # issues: - # types: - # - labeled - # - opened - # - unlabeled - push: - branches: - - main - - dev - paths: - - test.txt + issues: + types: + - labeled + - opened + - unlabeled jobs: check-condition: From 9006862d8059ca8a76f89d8fc297e25a5b010365 Mon Sep 17 00:00:00 2001 From: Alex Matsuev Date: Tue, 25 Nov 2025 14:09:19 +0300 Subject: [PATCH 18/19] Update --- .gitea/workflows/example-condition.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/example-condition.yaml b/.gitea/workflows/example-condition.yaml index b506235..9fa904d 100644 --- a/.gitea/workflows/example-condition.yaml +++ b/.gitea/workflows/example-condition.yaml @@ -11,9 +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 - run: echo "${{ toJson(gitea.event.issue) }}" + # if: contains(github.event.issue.labels.*.name, 'bug') + run: echo "${{ toJson(github.event.issue) }}" From 10430540edf2b2192df82cad64698c20c8a16b93 Mon Sep 17 00:00:00 2001 From: Alex Matsuev Date: Tue, 25 Nov 2025 15:01:10 +0300 Subject: [PATCH 19/19] Update --- .gitea/workflows/example-condition.yaml | 7 ++++++- issue.json | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 issue.json diff --git a/.gitea/workflows/example-condition.yaml b/.gitea/workflows/example-condition.yaml index 9fa904d..e5a7f81 100644 --- a/.gitea/workflows/example-condition.yaml +++ b/.gitea/workflows/example-condition.yaml @@ -14,7 +14,12 @@ jobs: # if: contains(github.event.issue.labels.*.name, 'bug') steps: + # Поздароваемся + - name: Hello + if: github.event.issue.user.login == 'alex' + run: echo "Hello, Alex!!!" + # Выводим текстовое сообщение - 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/issue.json b/issue.json new file mode 100644 index 0000000..5fd680c --- /dev/null +++ b/issue.json @@ -0,0 +1 @@ +hjkdshf ahsldf \ No newline at end of file