forked from sirius/actions-laba-1
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 10430540ed |
@@ -6,16 +6,15 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- v*.*.*
|
- v*.*.*
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
second-job:
|
second-job:
|
||||||
runs-on: sirius # docker, sirius или golang
|
runs-on: docker # docker, sirius или golang
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
if [ ${{ gitea.actor }} == 'VlaDislava28' ]; then
|
if [ ${{ gitea.actor }} == 'alex' ]; then
|
||||||
echo "Hello, ${{ gitea.actor }}"
|
echo "Hello, ${{ gitea.actor }}"
|
||||||
else
|
else
|
||||||
echo "Hello, Vlada"
|
echo "Hello, student"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Клонируем репозиторий для Runnera
|
# Клонируем репозиторий для Runnera
|
||||||
|
|||||||
@@ -1,92 +1,25 @@
|
|||||||
name: "Example condition"
|
name: "Example condition"
|
||||||
run-name: "deploy all condition"
|
run-name: "Check Job condition"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
issues:
|
issues:
|
||||||
types:
|
types:
|
||||||
- closed
|
|
||||||
- labeled
|
- labeled
|
||||||
push:
|
- opened
|
||||||
paths:
|
- unlabeled
|
||||||
- test.txt
|
|
||||||
- services.txt
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
issue_comment:
|
|
||||||
types:
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-condition:
|
check-condition:
|
||||||
runs-on: sirius
|
runs-on: sirius # docker, sirius или golang
|
||||||
if: contains(github.event.issue.labels.*.name, 'bug')
|
# if: contains(github.event.issue.labels.*.name, 'bug')
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Echo test
|
# Поздароваемся
|
||||||
run: echo "Этот шаг выполнится только при выполнении условия above"
|
- name: Hello
|
||||||
|
if: github.event.issue.user.login == 'alex'
|
||||||
|
run: echo "Hello, Alex!!!"
|
||||||
|
|
||||||
|
# Выводим текстовое сообщение
|
||||||
- name: Echo test
|
- 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) }}"
|
run: echo "${{ toJson(github.event.issue) }}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# name: "Example condition"
|
|
||||||
# run-name: "deply condition"
|
|
||||||
|
|
||||||
# on:
|
|
||||||
# issues:
|
|
||||||
# types:
|
|
||||||
# - closed
|
|
||||||
# - labeled
|
|
||||||
# push:
|
|
||||||
# paths:
|
|
||||||
# - test.txt
|
|
||||||
# - services.txt
|
|
||||||
# branches:
|
|
||||||
# - main
|
|
||||||
# issue_comment:
|
|
||||||
# types: [created]
|
|
||||||
|
|
||||||
# jobs:
|
|
||||||
# check-condition:
|
|
||||||
# runs-on: sirius
|
|
||||||
# if: |
|
|
||||||
# github.event_name != 'issue_comment' ||
|
|
||||||
# contains(github.event.comment.body, 'deploy')
|
|
||||||
|
|
||||||
# steps:
|
|
||||||
# - name: Process comment
|
|
||||||
# run: |
|
|
||||||
# if [ "${{ github.event_name }}" = "issue_comment" ]; then
|
|
||||||
# echo "Deploy command detected in comment!"
|
|
||||||
# else
|
|
||||||
# echo "Regular event: ${{ github.event_name }}"
|
|
||||||
# fi
|
|
||||||
|
|
||||||
|
|
||||||
# name: "Example condition"
|
|
||||||
# run-name: "multple condition"
|
|
||||||
|
|
||||||
# on:
|
|
||||||
# issues:
|
|
||||||
# types:
|
|
||||||
# - closed
|
|
||||||
# - labeled
|
|
||||||
# push:
|
|
||||||
# paths:
|
|
||||||
# - test.txt
|
|
||||||
# - services.txt
|
|
||||||
# branches:
|
|
||||||
# - main
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# 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,20 +0,0 @@
|
|||||||
name: "Example condition"
|
|
||||||
run-name: "condition 2"
|
|
||||||
|
|
||||||
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
|
||||||
@@ -1 +0,0 @@
|
|||||||
fkjshjshfhsj
|
|
||||||
Reference in New Issue
Block a user