17 Commits

Author SHA1 Message Date
a485f333a4 Delete gitea.json
All checks were successful
Example action / second-job (push) Successful in 6s
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
All checks were successful
Example action / second-job (push) Successful in 6s
2025-11-25 09:27:13 +03:00
cee776d263 Update action
All checks were successful
Example action / second-job (push) Successful in 6s
2025-11-25 09:25:37 +03:00
b231032a6e Upate readme.md
All checks were successful
Example action / second-job (push) Successful in 5s
2025-11-25 09:04:57 +03:00
10dae7e9ca Update example action
All checks were successful
Example action / second-job (push) Successful in 5s
2025-11-25 09:00:29 +03:00
250d85492e Update
All checks were successful
My First Action / second-job (push) Successful in 5s
2025-11-25 08:57:35 +03:00
9fbacc3cd4 Update
All checks were successful
My First Action / second-job (push) Successful in 18s
2025-11-24 16:16:24 +03:00
bef7ffda19 Update
Some checks failed
My First Action / second-job (push) Failing after 14s
2025-11-24 16:15:49 +03:00
d42a17e98e Add taskfile
Some checks failed
My First Action / second-job (push) Failing after 18s
2025-11-24 16:14:10 +03:00
5 changed files with 80 additions and 10 deletions

View File

@@ -0,0 +1,42 @@
name: "Example action"
run-name: "Start example action"
on:
push:
tags:
- v*.*.*
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, ${{ 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,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 "${{ toJson(gitea.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

@@ -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