Update .gitea/workflow/*.yaml
This commit is contained in:
23
.gitea/workflows/003_first_workflow.yaml
Normal file
23
.gitea/workflows/003_first_workflow.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
name: workflow_dispatch # Name of workflow
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
username:
|
||||
description: 'Username'
|
||||
default: 'Hang'
|
||||
required: true
|
||||
type: string
|
||||
age:
|
||||
description: 'Age'
|
||||
required: true
|
||||
type: number
|
||||
|
||||
jobs:
|
||||
echo-username-age: # Name of job
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Echo Username and Age
|
||||
run: |
|
||||
echo "Username: ${{ inputs.username }}"
|
||||
echo "Age: ${{ inputs.age }}"
|
||||
15
.gitea/workflows/003_second_workflow.yaml
Normal file
15
.gitea/workflows/003_second_workflow.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
name: workflow_run # Name of workflow
|
||||
|
||||
on:
|
||||
workflow_run: # Depend on the workflow completion of "workflow_dispatch"
|
||||
workflows: ["workflow_dispatch"]
|
||||
types:
|
||||
- completed
|
||||
|
||||
jobs:
|
||||
echo-hi-all: # Name of job
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Echo "Hi all"
|
||||
run: |
|
||||
echo "Hi all"
|
||||
Reference in New Issue
Block a user