Compare commits
12 Commits
v0.0.3
...
ac0de60ec0
| Author | SHA1 | Date | |
|---|---|---|---|
| ac0de60ec0 | |||
| 2e2bd2dc1f | |||
| ba1f9da7cb | |||
| cb1cc8137e | |||
| bf4b910da9 | |||
| 9006862d80 | |||
| 4e2fe2cd88 | |||
| 74519aabc1 | |||
| 5a9d16de59 | |||
| 946568665d | |||
| 599156f8b3 | |||
| 4b7b861263 |
@@ -2,19 +2,24 @@ name: "Example action"
|
||||
run-name: "Start example action"
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- v*.*.*
|
||||
# push:
|
||||
# tags:
|
||||
# - v*.*.*
|
||||
|
||||
delete:
|
||||
tags:
|
||||
- v*.*.*
|
||||
|
||||
|
||||
jobs:
|
||||
second-job:
|
||||
runs-on: docker # docker, sirius или golang
|
||||
runs-on: sirius # docker, sirius или golang
|
||||
steps:
|
||||
- run: |
|
||||
if [ ${{ gitea.actor }} == 'alex' ]; then
|
||||
if [ ${{ gitea.actor }} == 'VlaDislava28' ]; then
|
||||
echo "Hello, ${{ gitea.actor }}"
|
||||
else
|
||||
echo "Hello, student"
|
||||
echo "Hello, Vlada"
|
||||
fi
|
||||
|
||||
# Клонируем репозиторий для Runnera
|
||||
|
||||
@@ -5,13 +5,16 @@ on:
|
||||
issues:
|
||||
types:
|
||||
- labeled
|
||||
- opened
|
||||
- unlabeled
|
||||
|
||||
jobs:
|
||||
check-condition:
|
||||
runs-on: sirius # docker, sirius или golang
|
||||
if: contains(github.event.issue.labels.*.name, 'bug')
|
||||
# if: contains(github.event.issue.labels.*.name, 'bug')
|
||||
|
||||
steps:
|
||||
# Выводим текстовое сообщение
|
||||
- name: Echo test
|
||||
run: echo "${{ toJson(gitea.event.issue) }}"
|
||||
# if: contains(github.event.issue.labels.*.name, 'bug')
|
||||
run: echo "${{ toJson(github.event.issue) }}"
|
||||
|
||||
20
.gitea/workflows/example-new.yaml
Normal file
20
.gitea/workflows/example-new.yaml
Normal 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) }}"
|
||||
Reference in New Issue
Block a user