forked from sirius/actions-laba-1
Compare commits
1 Commits
ac0de60ec0
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 10430540ed |
@@ -2,24 +2,19 @@ name: "Example action"
|
||||
run-name: "Start example action"
|
||||
|
||||
on:
|
||||
# push:
|
||||
# tags:
|
||||
# - v*.*.*
|
||||
|
||||
delete:
|
||||
tags:
|
||||
- v*.*.*
|
||||
|
||||
push:
|
||||
tags:
|
||||
- v*.*.*
|
||||
|
||||
jobs:
|
||||
second-job:
|
||||
runs-on: sirius # docker, sirius или golang
|
||||
runs-on: docker # docker, sirius или golang
|
||||
steps:
|
||||
- run: |
|
||||
if [ ${{ gitea.actor }} == 'VlaDislava28' ]; then
|
||||
if [ ${{ gitea.actor }} == 'alex' ]; then
|
||||
echo "Hello, ${{ gitea.actor }}"
|
||||
else
|
||||
echo "Hello, Vlada"
|
||||
echo "Hello, student"
|
||||
fi
|
||||
|
||||
# Клонируем репозиторий для Runnera
|
||||
|
||||
@@ -14,7 +14,12 @@ jobs:
|
||||
# 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')
|
||||
if: contains(github.event.issue.labels.*.name, 'bug')
|
||||
run: echo "${{ toJson(github.event.issue) }}"
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
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) }}"
|
||||
1
issue.json
Normal file
1
issue.json
Normal file
@@ -0,0 +1 @@
|
||||
hjkdshf ahsldf
|
||||
Reference in New Issue
Block a user