forked from sirius/actions-laba-1
Update
This commit is contained in:
24
.gitea/workflows/example-action.yaml
Normal file
24
.gitea/workflows/example-action.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
name: "My First Action"
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
second-job:
|
||||
runs-on: docker
|
||||
steps:
|
||||
# Клонируем репозиторий для Runnera
|
||||
- name: Checkout rpository
|
||||
uses: actions/checkout@v6
|
||||
|
||||
# Выводим текстовое сообщение
|
||||
- name: Echo test
|
||||
run: echo "Hello!"
|
||||
|
||||
# Выводим переменные окружения
|
||||
- name: Show environment
|
||||
run: env
|
||||
|
||||
# Выводим контекст Gitea в формате JSON
|
||||
- name: Show Gitea context
|
||||
run: echo "${{ toJson(gitea) }}"
|
||||
@@ -1,19 +0,0 @@
|
||||
name: "My First Action"
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
second-job:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Install task utility
|
||||
run: |
|
||||
curl -1sLf 'https://dl.cloudsmith.io/public/task/task/setup.deb.sh' | bash
|
||||
apt update
|
||||
apt install task
|
||||
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Run task hello
|
||||
run: task hello
|
||||
@@ -1,5 +0,0 @@
|
||||
version: "3"
|
||||
|
||||
tasks:
|
||||
hello:
|
||||
cmd: echo "Hello!!!"
|
||||
Reference in New Issue
Block a user