Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 90ebee91ae | |||
| e42e641898 | |||
| b0245c89da | |||
| 76841ae85a | |||
| 9ff4134367 | |||
| c810bb889a | |||
| 7cca6f856d | |||
| 65c8b55f54 |
17
.gitea/workflows/example-condition.yaml
Normal file
17
.gitea/workflows/example-condition.yaml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
name: "Example condition"
|
||||||
|
run-name: "Check Job condition"
|
||||||
|
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types:
|
||||||
|
- labeled
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-condition:
|
||||||
|
runs-on: sirius # docker, sirius или golang
|
||||||
|
if: contains(github.event.issue.labels.*.name, 'bug')
|
||||||
|
|
||||||
|
steps:
|
||||||
|
# Выводим текстовое сообщение
|
||||||
|
- name: Echo test
|
||||||
|
run: echo "${{ toJson(gitea.event.issue) }}"
|
||||||
19
.gitea/workflows/example-dispatch.yaml
Normal file
19
.gitea/workflows/example-dispatch.yaml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
name: "Example dispatch"
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
echo-test:
|
||||||
|
runs-on: docker # docker, sirius или golang
|
||||||
|
|
||||||
|
steps:
|
||||||
|
# Выводим текстовое сообщение
|
||||||
|
- name: Echo test
|
||||||
|
run: echo "Hello!"
|
||||||
|
|
||||||
|
- name: Install kubectl action
|
||||||
|
uses: tale/kubectl-action@v1
|
||||||
|
with:
|
||||||
|
base64-kube-config: ${{ secrets.KUBE_CONFIG }}
|
||||||
|
- run: kubectl get pods
|
||||||
Reference in New Issue
Block a user