-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.11 KB
/
test.yml
File metadata and controls
43 lines (37 loc) · 1.11 KB
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
41
42
43
---
name: 🧪 Testing
run-name: ${{ github.workflow }} - ${{ toJson(inputs) }}
concurrency: {group: "${{ github.workflow }}"}
env: {TZ: Asia/Shanghai}
on:
workflow_dispatch:
inputs:
cmd:
description: Command to execute, default to empty
required: false
type: string
default: ""
runs-on:
description: Runner, default to `"ubuntu-slim"`
required: false
type: string
default: '"ubuntu-slim"'
jobs:
debug:
runs-on: ${{ fromJson(inputs.runs-on||'ubuntu-slim') }}
timeout-minutes: 5
defaults: {run: {shell: bash}}
steps:
- name: "📁 Checkout the repository"
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with: {persist-credentials: false}
- id: setup
name: "⚙️ Run the setup action"
uses: ./
- name: "📊 Show the setup output"
env:
STEP_OUTPUT: ${{ toJson(steps.setup.outputs) }}
run: jq -C <<<"$STEP_OUTPUT"
- name: "🐞 Debug with command: ${{ inputs.cmd }}"
if: ${{ inputs.cmd }}
run: ${{ inputs.cmd }}