-
Notifications
You must be signed in to change notification settings - Fork 1
112 lines (108 loc) · 3.36 KB
/
pre_print_info.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: Print Info
on:
push:
branches:
- master
- release/**
pull_request:
branches:
- master
types: [opend, reopend, labeled, unlabeled]
schedule:
- cron: '0 0 * * *'
env:
EXTRA_PARH: /
DEBUG: true
jobs:
print_env_info:
runs-on: [ubuntu-18.04]
name: print_env_info
timeout-minutes: 30
steps:
- name: OS Info Print
continue-on-error: true
run: |
echo -e "-"
echo -e "##############"; echo "date"; date
echo -e "##############"; echo "users"; users
echo -e "##############"; echo "cat /etc/lsb-release"; cat /etc/lsb-release
echo -e "##############"; echo "uname -a"; uname -a
echo -e "##############"; echo "df -Th"; df -Th
echo -e "##############"; echo "lscpu"; lscpu
echo -e "##############"; echo "ls -l /lib"; ls -l /lib
echo -e "##############"; echo "ls -l /lib64"; ls -l /lib64
echo -e "##############"; echo "env"; env
- name: Env Print
run: |
echo "HOME : ${HOME}"
echo "GITHUB_WORKFLOW : ${GITHUB_WORKFLOW}"
echo "GITHUB_RUN_ID : ${GITHUB_RUN_ID}"
echo "GITHUB_RUN_NUMBER : ${GITHUB_RUN_NUMBER}"
echo "GITHUB_ACTION : ${GITHUB_ACTION}"
echo "GITHUB_ACTIONS : ${GITHUB_ACTIONS}"
echo "GITHUB_ACTOR : ${GITHUB_ACTOR}"
echo "GITHUB_REPOSITORY : ${GITHUB_REPOSITORY}"
echo "GITHUB_EVENT_NAME : ${GITHUB_EVENT_NAME}"
echo "GITHUB_EVENT_PATH : ${GITHUB_EVENT_PATH}"
echo "GITHUB_WORKSPACE : ${GITHUB_WORKSPACE}"
echo "GITHUB_SHA : ${GITHUB_SHA}"
echo "GITHUB_REF : ${GITHUB_REF}"
echo "GITHUB_HEAD_REF : ${GITHUB_HEAD_REF}"
echo "GITHUB_BASE_REF : ${GITHUB_BASE_REF}"
- name: Dump GitHub Context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
echo "$GITHUB_CONTEXT"
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: Dump strategy context
env:
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
run: echo "$STRATEGY_CONTEXT"
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJson(matrix) }}
run: echo "$MATRIX_CONTEXT"
command_version_check:
runs-on: [ubuntu-18.04]
name: command_version_check
needs: [print_env_info]
steps:
- name: Bash version
run : |
bash --version
- name: sudo version
run: |
sudo --version
- name: OpenSSL version
run: |
openssl version
- name: Docker Version
run: |
docker version
- name: docker-compose Version
run: |
docker-compose version
- name: awk version
run: |
awk --version
- name: sed version
run: |
sed --version
- name: curl version
run: |
curl --version
- name: jq version
run: |
jq --version