Add .gitea/workflows/params-trigger-mac.yml
This commit is contained in:
25
.gitea/workflows/params-trigger-mac.yml
Normal file
25
.gitea/workflows/params-trigger-mac.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Manual Trigger With Parameters
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
name:
|
||||
description: 'Your name'
|
||||
required: true
|
||||
default: 'World'
|
||||
times:
|
||||
description: 'How many times to greet'
|
||||
required: false
|
||||
default: '1'
|
||||
|
||||
jobs:
|
||||
greet:
|
||||
runs-on: macos
|
||||
|
||||
steps:
|
||||
- name: Say Hello
|
||||
run: |
|
||||
for ((i = 0; i < ${{ inputs.times }}; i++)); do
|
||||
echo "Hello, ${{ inputs.name }}!"
|
||||
done
|
||||
shell: bash
|
||||
Reference in New Issue
Block a user