31 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
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
a485f333a4 Delete gitea.json 2025-11-25 13:36:09 +03:00
90ebee91ae Update dispatch action 2025-11-25 11:38:37 +03:00
e42e641898 Update dispatch action 2025-11-25 11:35:55 +03:00
b0245c89da Update dispatch action 2025-11-25 11:29:54 +03:00
76841ae85a Add dispatch action 2025-11-25 11:27:14 +03:00
9ff4134367 Update condition 2025-11-25 10:29:07 +03:00
c810bb889a Update condition 2025-11-25 10:28:18 +03:00
7cca6f856d Update condition 2025-11-25 10:25:47 +03:00
65c8b55f54 Add condition example 2025-11-25 10:19:33 +03:00
a8cbb476ba Update action 2025-11-25 09:27:13 +03:00
cee776d263 Update action 2025-11-25 09:25:37 +03:00
b231032a6e Upate readme.md 2025-11-25 09:04:57 +03:00
10dae7e9ca Update example action 2025-11-25 09:00:29 +03:00
250d85492e Update 2025-11-25 08:57:35 +03:00
9fbacc3cd4 Update 2025-11-24 16:16:24 +03:00
bef7ffda19 Update 2025-11-24 16:15:49 +03:00
d42a17e98e Add taskfile 2025-11-24 16:14:10 +03:00
7 changed files with 107 additions and 10 deletions

View File

@@ -0,0 +1,43 @@
name: "Example action"
run-name: "Start example action"
on:
push:
tags:
- v*.*.*
jobs:
second-job:
runs-on: sirius # docker, sirius или golang
steps:
- run: |
if [ ${{ gitea.actor }} == 'VlaDislava28' ]; then
echo "Hello, ${{ gitea.actor }}"
else
echo "Hello, Vlada"
fi
# Клонируем репозиторий для Runnera
- name: Checkout rpository
uses: actions/checkout@v6
# Выводим текстовое сообщение
- name: Echo test
run: echo "Hello, ${{ gitea.actor }}"
# Выводим путь к репозиторию
- name: Repo name
run: echo "Hello, ${{ gitea.repository }}"
# Выводим переменные окружения
- name: Show environment
run: env
# Выводим контекст Gitea в формате JSON
- name: Show Gitea context
run: echo "${{ toJson(gitea) }}"
# Выводим контекст Gihub в формате JSON
- name: Show Gitea context
run: echo "${{ toJson(github) }}"

View File

@@ -0,0 +1,19 @@
name: "Example condition"
run-name: "Check Job condition"
on:
issues:
types:
- closed
- labeled
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

@@ -0,0 +1,19 @@
name: "Example dispatch"
on:
workflow_dispatch:
jobs:
echo-test:
runs-on: docker # docker, sirius или golang
steps:
# Выводим текстовое сообщение
- name: Echo test
run: echo "Hello!"
- name: Install kubectl action
uses: tale/kubectl-action@v1
with:
base64-kube-config: ${{ secrets.KUBE_CONFIG }}
- run: kubectl get pods

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,10 +0,0 @@
name: "My First Action"
on:
push:
jobs:
second-job:
runs-on: docker
steps:
- run: env

View File

@@ -1,2 +1,4 @@
# actions-laba-1 # actions-laba-1

4
test.txt Normal file
View File

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