forked from sirius/actions-laba-1
Compare commits
25 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 10430540ed | |||
| 9006862d80 | |||
| 4e2fe2cd88 | |||
| 74519aabc1 | |||
| 5a9d16de59 | |||
| 946568665d | |||
| 599156f8b3 | |||
| 4b7b861263 | |||
| a485f333a4 | |||
| 90ebee91ae | |||
| e42e641898 | |||
| b0245c89da | |||
| 76841ae85a | |||
| 9ff4134367 | |||
| c810bb889a | |||
| 7cca6f856d | |||
| 65c8b55f54 | |||
| a8cbb476ba | |||
| cee776d263 | |||
| b231032a6e | |||
| 10dae7e9ca | |||
| 250d85492e | |||
| 9fbacc3cd4 | |||
| bef7ffda19 | |||
| d42a17e98e |
42
.gitea/workflows/example-action.yaml
Normal file
42
.gitea/workflows/example-action.yaml
Normal 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) }}"
|
||||||
25
.gitea/workflows/example-condition.yaml
Normal file
25
.gitea/workflows/example-condition.yaml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
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: Hello
|
||||||
|
if: github.event.issue.user.login == 'alex'
|
||||||
|
run: echo "Hello, Alex!!!"
|
||||||
|
|
||||||
|
# Выводим текстовое сообщение
|
||||||
|
- name: Echo test
|
||||||
|
if: contains(github.event.issue.labels.*.name, 'bug')
|
||||||
|
run: echo "${{ toJson(github.event.issue) }}"
|
||||||
19
.gitea/workflows/example-dispatch.yaml
Normal file
19
.gitea/workflows/example-dispatch.yaml
Normal 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
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
name: "My First Action"
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
second-job:
|
|
||||||
runs-on: docker
|
|
||||||
steps:
|
|
||||||
- run: env
|
|
||||||
1
issue.json
Normal file
1
issue.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
hjkdshf ahsldf
|
||||||
Reference in New Issue
Block a user