Skip to content

Commit 03004ba

Browse files
authored
[INFRA] List packages and tools installed in gh action runners (#78)
Run on a daily basis to help detect environment changes. Logs will help doing diff to detect softwares and tools changes. Not done on macOS.
1 parent 263c6bd commit 03004ba

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: List installed packages and tools
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '10 1 * * *'
7+
pull_request:
8+
branches:
9+
- master
10+
paths:
11+
- '.github/workflows/list-installed-packages-and-tools.yml'
12+
13+
jobs:
14+
windows_env:
15+
runs-on: windows-2019
16+
steps:
17+
# The 1st powershell run is very slow, use this one to warm the process
18+
# Next powershell calls will execute right away
19+
- name: Ping
20+
run: echo "I am alive"
21+
- name: List installed browsers (64 bits)
22+
shell: powershell
23+
run: Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Where { $_.DisplayName -like "*Chrome*" -or $_.DisplayName -like "*Edge*"} | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table -AutoSize
24+
- name: List installed browsers (32/64 bits)
25+
shell: powershell
26+
run: Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Where { $_.DisplayName -like "*Chrome*" -or $_.DisplayName -like "*Edge*"} | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table -AutoSize
27+
- name: List all installed software (64 bits)
28+
shell: powershell
29+
run: Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table -AutoSize
30+
- name: List all installed software (32/64 bits)
31+
shell: powershell
32+
run: Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table -AutoSize
33+
34+
ubuntu_env:
35+
runs-on: ubuntu-20.04
36+
steps:
37+
- name: Check Chrome
38+
run: apt show google-chrome-stable
39+
- name: List all software
40+
run: apt list

0 commit comments

Comments
 (0)