-
Notifications
You must be signed in to change notification settings - Fork 18
/
action.yml
47 lines (44 loc) · 1.36 KB
/
action.yml
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
44
45
46
47
inputs:
name:
description: "The name of the operating system"
architecture:
description: "The architecture of the operating system"
version:
description: "The version of the operating system"
uname_release:
description: "The version as reported by uname"
uname_hardware:
description: "The hardware as reported by uname"
work_directory:
description: "The working directory"
runs:
using: "composite"
steps:
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
# - name: Setup SSH session
# uses: lhotari/action-upterm@v1
- name: test
uses: ./
env:
FOO: A
BAR: B
with:
environment_variables: FOO BAR
operating_system: ${{ inputs.name }}
architecture: ${{ inputs.architecture }}
version: '${{ inputs.version }}'
shutdown_vm: false
run: |
uname -a
uname -m
uname -p
echo $SHELL
pwd
ls -lah
whoami
env | sort
[ "`uname -s`" = '${{ inputs.name }}' ]
[ "`uname -r`" = '${{ inputs.uname_release || inputs.version }}' ]
[ "`uname -m`" = '${{ inputs.uname_hardware }}' ] || [ "`uname -p`" = '${{ inputs.uname_hardware }}' ]
[ "`pwd`" = '${{ inputs.work_directory }}' ]