-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (54 loc) · 1.55 KB
/
makexrsys.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
name: MakeXRSYS
run-name: Make XRSYS ${{ inputs.makeversion }}
on:
workflow_dispatch:
inputs:
makeversion:
description: 'Target OS Version'
required: true
type: choice
options:
- w1124h2a64
- w1124h264
- w1123h2a64
- w1123h264
- w1022h264
- w11lt24a64
- w11lt2464
- w10lt2164
- w10lt1964
- w10lt1664
- w7pro64
isosd:
description: 'Add DrvCeo'
required: false
default: false
type: boolean
jobs:
makexrsys:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get rclone Config
uses: actions/checkout@v4
with:
repository: xrgzs/rclone-action
token: ${{ secrets.RCLONE_TOKEN }}
path: bin
- name: Change DNS Server
shell: pwsh
run: |
$newDnsServers = @('1.1.1.1', '8.8.8.8')
$networkAdapters = Get-NetAdapter | Where-Object { $_.Status -eq 'Up' }
foreach ($adapter in $networkAdapters) {
Set-DnsClientServerAddress -InterfaceIndex $adapter.ifIndex -ResetServerAddresses
Set-DnsClientServerAddress -InterfaceIndex $adapter.ifIndex -ServerAddresses $newDnsServers
}
ipconfig /flushdns
- name: Big Task
shell: pwsh
run: |
$makeversion = [string] "${{ inputs.makeversion }}"
$isosd = [bool] $${{ inputs.isosd }}
.\makexrsys.ps1