forked from FullofQuarks/chocolatey-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 958 Bytes
/
automatic-update.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
name: Automatic Update
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
defaults:
run:
shell: pwsh
jobs:
update_choco:
name: update_everything
runs-on: windows-latest
env:
au_Push: true
api_key: ${{ secrets.api_key }}
steps:
- uses: actions/checkout@v2.7.0
with:
ref: master
- name: Setup git user
run: |
git config --global user.name "Chocolatey Automatic Updater"
git config --global user.email "choco@someemail.com"
- name: Install Chocolatey Automatic Package Updater Module
run: Install-Module -Name AU -Force
- name: Run update script
shell: pwsh
run: |
.\update_all.ps1
- name: Save Artifacts
uses: actions/upload-artifact@v3
with:
name: Results
path: |
Update-AUPackages.md
Update-History.md
pdate_info.xml