-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (36 loc) · 1.21 KB
/
Copy pathupdate.yml
File metadata and controls
43 lines (36 loc) · 1.21 KB
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
name: Update check
on:
schedule:
- cron: "0 0 * * *"
jobs:
update:
name: Update
runs-on: windows-latest
steps:
# v4.2.2
- name: Checkout sources
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
# v4.2.0
- name: Restore updater
id: restore-updater
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57
with:
path: ./updater.exe
key: ${{ hashFiles('./updater/version') }}
- name: Build updater
if: steps.restore-updater.outputs.cache-hit != 'true'
run: |
cargo build --release --manifest-path '.\updater\Cargo.toml'
cp '.\updater\target\release\updater.exe' '.'
# v4.2.0
- name: Cache updater
if: steps.restore-updater.outputs.cache-hit != 'true'
uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57
with:
path: ./updater.exe
key: ${{ hashFiles('./updater/version') }}
- name: Update
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "jarcho@users.noreply.github.com"
./updater.exe "'${{ secrets.choco_api_key }}'"