-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 959 Bytes
/
regular-build.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
name: regular_build
on:
workflow_dispatch:
push:
branches:
- master
schedule:
- cron: "0 9 * * *"
- cron: "0 21 * * *"
jobs:
update_all_app_manifests:
name: Update all app manifests
runs-on: windows-latest
env:
SCOOP_REPO_NAME: scoop
steps:
- name: Clone scoop repo
shell: pwsh
run: git clone https://github.com/lukesampson/scoop.git ./$env:SCOOP_REPO_NAME
working-directory: ../
- name: Clone my scoop bucket repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Check for app updates
shell: pwsh
run: . ./bin/check-updates.ps1 -WorkspacePath $env:GITHUB_WORKSPACE -ScoopRepoPath $env:GITHUB_WORKSPACE/../$env:SCOOP_REPO_NAME
- name: git push
shell: pwsh
run: git push https://$env:[email protected]/athrunsun/scoop-bucket.git HEAD:master
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}