main #5
@@ -3,13 +3,14 @@ run-name: "Start example action"
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
tags:
|
||||||
|
- v*.*.*
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
second-job:
|
second-job:
|
||||||
runs-on: golang
|
runs-on: golang
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
|
|
||||||
if [ ${{ gitea.actor }} == 'wwitchq' ]; then
|
if [ ${{ gitea.actor }} == 'wwitchq' ]; then
|
||||||
echo "Hello, ${{ gitea.actor }}"
|
echo "Hello, ${{ gitea.actor }}"
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -26,4 +26,3 @@ jobs:
|
|||||||
- 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) }}"
|
||||||
|
|
||||||
|
|||||||
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
|
||||||
1
issue.json
Normal file
1
issue.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
hjkdshf ahsldf
|
||||||
@@ -1 +0,0 @@
|
|||||||
uraaaaaa
|
|
||||||
4
test.txt
Normal file
4
test.txt
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
hdjksfh adhsjfk hadslkjh
|
||||||
|
jkfbjkasdbf asdj fhaksdj hf jklasdl
|
||||||
|
|
||||||
|
sakfdh kashf khaslfkh aksdfhljh
|
||||||
Reference in New Issue
Block a user