forked from sirius/actions-laba-1
Compare commits
9 Commits
ebf8e91ca1
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| e14114c6a7 | |||
| b5d83dc351 | |||
| a5100b9466 | |||
| 00f78899e1 | |||
| 5b2add6c6f | |||
| cf929cea25 | |||
| 688bd3a7f9 | |||
| c6d885e0be | |||
| 02512a4895 |
@@ -1,19 +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
|
- closed
|
||||||
- labeled
|
- labeled
|
||||||
|
push:
|
||||||
|
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')
|
if: contains(github.event.issue.labels.*.name, 'bug')
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Выводим текстовое сообщение
|
|
||||||
- name: Echo test
|
- name: Echo test
|
||||||
# if: contains(github.event.issue.labels.*.name, 'bug')
|
run: echo "Этот шаг выполнится только при выполнении условия above"
|
||||||
|
- name: Echo test
|
||||||
|
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,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
1
services.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
fkjshjshfhsj
|
||||||
Reference in New Issue
Block a user