-
Notifications
You must be signed in to change notification settings - Fork 3
82 lines (66 loc) · 2.17 KB
/
update.yaml
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
name: au-updater
on:
schedule:
- cron: "7 0/4 * * *" # runs at 7 minutes past the hour every 4 hours
push:
branches: [master]
pull_request:
jobs:
update-packages:
runs-on: windows-latest
defaults:
run:
shell: powershell
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Build Evironment Info
run: |
Get-CimInstance win32_operatingsystem -Property Caption, OSArchitecture, Version | fl Caption, OSArchitecture, Version
$PSVersionTable
git --version
choco --version
go version
- name: Initialize Git config
run: |
git config --global user.email "[email protected]"
git config --global user.name "mikeee"
git config --global core.safecrlf false
- name: Install Chocolatey Core Extensions
run: |
choco install chocolatey-core.extension
- name: Install AU
run: |
git clone -q https://github.com/majkinetor/au.git $Env:TEMP/au
. "$Env:TEMP/au/scripts/Install-AU.ps1" $Env:au_version
- name: Update all packages
run: |
$ErrorActionPreference = 'Continue'
./update_all.ps1
7z a au_temp.zip $Env:TEMP\chocolatey\au\*
env:
au_version: # omitting to use latest
au_push: true
au_test_groups: 1
# Chocolatey API key to push packages
api_key: ${{ secrets.CHOCOLATEY_API_KEY}}
github_user_repo: ${{ github.repository }}
github_api_key: ${{ secrets.GH_TOKEN }}
gist_id: 17b5a042cba1bd9da2bf21615aab4f0f
# Used for test reporting
gist_id_test: ${{ secrets.GIST_ID_TEST }}
# mail_destination: [email protected]
# mail_user:
# mail_pass:
# mail_server: smtp.gmail.com
# mail_port: 587
# mail_enablessl: true
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: update_results
path: |
update_info.xml
Update-AUPackages.md
au_temp.zip