Skip to content

Commit f1128b5

Browse files
committed
chore: add support for --cache to ipsw watch commits
1 parent a26e07c commit f1128b5

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/discord.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Discord"
22

33
on:
44
schedule:
5-
- cron: "00 01,13 * * *"
5+
- cron: "0 */1 * * *" # every 1 hour
66
# - cron: "0 0 * * *"
77

88
jobs:
@@ -13,12 +13,12 @@ jobs:
1313
id: cache-tags
1414
uses: actions/cache@v4
1515
with:
16-
path: tags
17-
key: ${{ runner.os }}-tags
16+
path: watch-cache
17+
key: ${{ runner.os }}-watch-cache
1818
- name: Package Installer
1919
run: |
2020
sudo snap install ipsw
2121
- name: Run ipsw watch WebKit/WebKit
2222
run: |
23-
/snap/bin/ipsw watch --pattern '(?i)Lockdown Mode' --days 1 --api ${{ secrets.GITHUB_TOKEN }} --discord-id ${{ secrets.DISCORD_ID }} --discord-token ${{ secrets.DISCORD_TOKEN }} --discord-icon "https://raw.githubusercontent.com/blacktop/ipsw/master/www/static/img/webkit.png" WebKit/WebKit
24-
/snap/bin/ipsw watch --api ${{ secrets.GITHUB_TOKEN }} --discord-id ${{ secrets.DISCORD_ID }} --discord-token ${{ secrets.DISCORD_TOKEN }} apple-oss-distributions/distribution-macOS --tags --cache tags --discord-icon "https://avatars.githubusercontent.com/u/91919287"
23+
/snap/bin/ipsw watch WebKit/WebKit --pattern '(?i)Lockdown Mode' --days 1 --cache watch-cache --api ${{ secrets.GITHUB_TOKEN }} --discord-id ${{ secrets.DISCORD_ID }} --discord-token ${{ secrets.DISCORD_TOKEN }} --discord-icon "https://raw.githubusercontent.com/blacktop/ipsw/master/www/static/img/webkit.png"
24+
/snap/bin/ipsw watch apple-oss-distributions/distribution-macOS --tags --cache watch-cache --api ${{ secrets.GITHUB_TOKEN }} --discord-id ${{ secrets.DISCORD_ID }} --discord-token ${{ secrets.DISCORD_TOKEN }} --discord-icon "https://avatars.githubusercontent.com/u/91919287"

cmd/ipsw/cmd/watch.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,6 @@ var watchCmd = &cobra.Command{
151151
if viper.IsSet("watch.post") {
152152
return fmt.Errorf("commit watching is not supported with --post")
153153
}
154-
if viper.IsSet("watch.cache") {
155-
return fmt.Errorf("commit watching is not supported with local file --cache")
156-
}
157154
}
158155

159156
if viper.GetString("watch.discord-id") != "" && viper.GetString("watch.discord-token") != "" {

0 commit comments

Comments
 (0)