11 Commits

Author SHA1 Message Date
e14114c6a7 dhh 2025-11-25 16:56:57 +03:00
b5d83dc351 yt
All checks were successful
Example condition / check-condition (push) Successful in 0s
2025-11-25 16:54:51 +03:00
a5100b9466 h
All checks were successful
Example condition / check-condition (push) Successful in 0s
2025-11-25 16:51:00 +03:00
00f78899e1 all 2025-11-25 16:49:28 +03:00
5b2add6c6f dhjhjsd 2025-11-25 16:35:30 +03:00
cf929cea25 dep
All checks were successful
Example condition / check-condition (push) Successful in 0s
2025-11-25 16:31:30 +03:00
688bd3a7f9 m 2025-11-25 16:22:49 +03:00
c6d885e0be new
All checks were successful
Example condition / check-condition (push) Has been skipped
2025-11-25 16:21:00 +03:00
02512a4895 ifs 2025-11-25 15:59:10 +03:00
ebf8e91ca1 closed 2025-11-25 15:57:59 +03:00
0a31d7b7ae cond 2025-11-25 15:57:25 +03:00
5 changed files with 89 additions and 22 deletions

View File

@@ -2,11 +2,7 @@ name: "Example action"
run-name: "Start example action" run-name: "Start example action"
on: on:
# push: push:
# tags:
# - v*.*.*
delete:
tags: tags:
- v*.*.* - v*.*.*

View File

@@ -1,20 +1,92 @@
name: "Example condition" name: "Example condition"
run-name: "Check Job condition" run-name: "deploy all condition"
on: on:
issues: issues:
types: types:
- closed
- labeled - labeled
- opened push:
- unlabeled paths:
- test.txt
- services.txt
branches:
- main
issue_comment:
types:
- deploy
jobs: jobs:
check-condition: check-condition:
runs-on: sirius # docker, sirius или golang runs-on: sirius
if: contains(github.event.issue.labels.*.name, 'bug')
steps:
- name: Echo test
run: echo "Этот шаг выполнится только при выполнении условия above"
- name: Echo test
if: contains(github.event.issue.labels.*.name, 'bug')
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') # if: contains(github.event.issue.labels.*.name, 'bug')
steps: # steps:
# Выводим текстовое сообщение # # Выводим текстовое сообщение
- 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) }}"

View File

@@ -1,5 +1,5 @@
name: "Example condition" name: "Example condition"
run-name: "Check Job condition" run-name: "condition 2"
on: on:
issues: issues:
@@ -11,10 +11,10 @@ on:
jobs: jobs:
check-condition: check-condition:
runs-on: sirius # docker, sirius или golang 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 - 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) }}"

1
services.txt Normal file
View File

@@ -0,0 +1 @@
fkjshjshfhsj

View File

@@ -1,4 +1,2 @@
hdjksfh adhsjfk hadslkjh hello, myself
jkfbjkasdbf asdj fhaksdj hf jklasdl dejdjkdwkaj
sakfdh kashf khaslfkh aksdfhljh