7 Commits

Author SHA1 Message Date
ebf8e91ca1 closed 2025-11-25 15:57:59 +03:00
0a31d7b7ae cond 2025-11-25 15:57:25 +03:00
ac0de60ec0 cretae 2025-11-25 15:36:59 +03:00
2e2bd2dc1f com 2025-11-25 15:10:34 +03:00
ba1f9da7cb com 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
4 changed files with 26 additions and 12 deletions

View File

@@ -6,15 +6,16 @@ on:
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

@@ -4,9 +4,8 @@ run-name: "Check Job condition"
on: on:
issues: issues:
types: types:
- closed
- labeled - labeled
- opened
- unlabeled
jobs: jobs:
check-condition: check-condition:
@@ -14,12 +13,7 @@ jobs:
# if: contains(github.event.issue.labels.*.name, 'bug') # if: contains(github.event.issue.labels.*.name, 'bug')
steps: steps:
# Поздароваемся
- name: Hello
if: github.event.issue.user.login == 'alex'
run: echo "Hello, Alex!!!"
# Выводим текстовое сообщение # Выводим текстовое сообщение
- name: Echo test - 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) }}" 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) }}"

View File

@@ -1 +0,0 @@
hjkdshf ahsldf