-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (26 loc) · 884 Bytes
/
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
name: Update from upstream cask definition
on:
# Run every 4 hours.
schedule:
- cron: "0 */4 * * *"
# Also allow manual triggering.
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
# Checkout both superproject and submodule, with shallow history (the Makefile will take care of fetching more).
- uses: actions/checkout@v2
with:
submodules: true
# Set username and email so that commits can be made.
- name: Set Git committer identity
run: |
git config user.name "Github Actions"
git config user.email "[email protected]"
# Cherry-pick commits that change the cask file from the upstream repository.
- name: Update from upstream
run: make update
# Push those commits back to `master`.
- name: Push to `master`
run: git push