-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (42 loc) · 1.22 KB
/
schedule.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
on:
schedule:
# https://crontab.guru/
- cron: '0 */2 */1 * *'
# for manual update
workflow_dispatch:
name: Excavator
jobs:
excavate:
name: Excavate
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Excavator
uses: ScoopInstaller/Scoop-GithubActions@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SKIP_UPDATED: '1'
THROW_ERROR: '0'
# We have some faulty hash so recompute them each time
recompute-hash:
needs: excavate
name: Recompute Hash
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install Scoop
run: |
Invoke-WebRequest -useb get.scoop.sh -outfile 'install.ps1'
.\install.ps1 -RunAsAdmin
Join-Path (Resolve-Path ~).Path "scoop\shims" >> $Env:GITHUB_PATH
- name: recompute Hash
run: |
.\bin\checkver.ps1 -ForceUpdate
# Commit all changed files back to the repository
- uses: EndBug/add-and-commit@v9 # You can change this to use a specific version.
with:
add: 'bucket'
commit: --signoff
default_author: github_actions
pull: --rebase --autostash
message: 'Updating hashes (Automated by Github Actions)'