-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (37 loc) · 1.84 KB
/
list-installed-packages-and-tools.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
name: List installed packages and tools
on:
workflow_dispatch:
schedule:
- cron: '10 1 * * *'
pull_request:
branches:
- master
paths:
- '.github/workflows/list-installed-packages-and-tools.yml'
jobs:
windows_env:
runs-on: ${{ vars.RUNNER_WINDOWS }}
steps:
# The 1st powershell run is very slow, use this one to warm the process
# Next powershell calls will execute right away
- name: Ping
run: echo "I am alive"
- name: List installed browsers (64 bits)
shell: powershell
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
- name: List installed browsers (32/64 bits)
shell: powershell
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
- name: List all installed software (64 bits)
shell: powershell
run: Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table -AutoSize
- name: List all installed software (32/64 bits)
shell: powershell
run: Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table -AutoSize
ubuntu_env:
runs-on: ${{ vars.RUNNER_UBUNTU }}
steps:
- name: Check Chrome
run: apt show google-chrome-stable
- name: List all software
run: apt list