-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (38 loc) · 1.08 KB
/
workflow-dispatch.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: workflow-dispatch
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
environment:
description: 'Environment (either development or production)'
type: environment
required: true
default: development
jobs:
print-inputs-from-remote-workflow:
uses: nakamasato/github-actions-practice/.github/workflows/print-workflow-dispatch-inputs.yaml@main
with:
environment: ${{ inputs.environment }}
logLevel: ${{ inputs.logLevel }}
run:
needs: [print-inputs-from-remote-workflow]
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
steps:
- run: echo running
print-inputs:
needs: [print-inputs-from-remote-workflow]
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
steps:
- run: |
echo "### condition" >> "$GITHUB_STEP_SUMMARY"
echo "- branch: ${{ github.ref_name }}" >> "$GITHUB_STEP_SUMMARY"