12 Commits

Author SHA1 Message Date
ac0de60ec0 cretae 2025-11-25 15:36:59 +03:00
2e2bd2dc1f com 2025-11-25 15:10:34 +03:00
ba1f9da7cb com
All checks were successful
Example action / second-job (push) Successful in 1s
2025-11-25 14:57:54 +03:00
cb1cc8137e up 2025-11-25 14:54:44 +03:00
bf4b910da9 action 2025-11-25 14:46:48 +03:00
9006862d80 Update 2025-11-25 14:09:19 +03:00
4e2fe2cd88 Update 2025-11-25 14:00:34 +03:00
74519aabc1 Update test.txt 2025-11-25 13:59:41 +03:00
5a9d16de59 Update action 2025-11-25 13:59:11 +03:00
946568665d Update test.txt 2025-11-25 13:58:31 +03:00
599156f8b3 Update action 2025-11-25 13:57:57 +03:00
4b7b861263 Add test.txt 2025-11-25 13:57:00 +03:00
4 changed files with 40 additions and 8 deletions

View File

@@ -2,19 +2,24 @@ name: "Example action"
run-name: "Start example action" run-name: "Start example action"
on: on:
push: # push:
# tags:
# - v*.*.*
delete:
tags: tags:
- v*.*.* - v*.*.*
jobs: jobs:
second-job: second-job:
runs-on: docker # docker, sirius или golang runs-on: sirius # docker, sirius или golang
steps: steps:
- run: | - run: |
if [ ${{ gitea.actor }} == 'alex' ]; then if [ ${{ gitea.actor }} == 'VlaDislava28' ]; then
echo "Hello, ${{ gitea.actor }}" echo "Hello, ${{ gitea.actor }}"
else else
echo "Hello, student" echo "Hello, Vlada"
fi fi
# Клонируем репозиторий для Runnera # Клонируем репозиторий для Runnera

View File

@@ -5,13 +5,16 @@ on:
issues: issues:
types: types:
- labeled - labeled
- opened
- unlabeled
jobs: jobs:
check-condition: check-condition:
runs-on: sirius # docker, sirius или golang runs-on: sirius # docker, sirius или golang
if: contains(github.event.issue.labels.*.name, 'bug') # if: contains(github.event.issue.labels.*.name, 'bug')
steps: steps:
# Выводим текстовое сообщение # Выводим текстовое сообщение
- name: Echo test - name: Echo test
run: echo "${{ toJson(gitea.event.issue) }}" # if: contains(github.event.issue.labels.*.name, 'bug')
run: echo "${{ toJson(github.event.issue) }}"

View File

@@ -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) }}"

4
test.txt Normal file
View File

@@ -0,0 +1,4 @@
hdjksfh adhsjfk hadslkjh
jkfbjkasdbf asdj fhaksdj hf jklasdl
sakfdh kashf khaslfkh aksdfhljh