Skip to content

Commit

Permalink
chore: add support for --cache to ipsw watch commits
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Jan 12, 2025
1 parent a26e07c commit f1128b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/discord.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Discord"

on:
schedule:
- cron: "00 01,13 * * *"
- cron: "0 */1 * * *" # every 1 hour
# - cron: "0 0 * * *"

jobs:
Expand All @@ -13,12 +13,12 @@ jobs:
id: cache-tags
uses: actions/cache@v4
with:
path: tags
key: ${{ runner.os }}-tags
path: watch-cache
key: ${{ runner.os }}-watch-cache
- name: Package Installer
run: |
sudo snap install ipsw
- name: Run ipsw watch WebKit/WebKit
run: |
/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
/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"
/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"
/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"
3 changes: 0 additions & 3 deletions cmd/ipsw/cmd/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,6 @@ var watchCmd = &cobra.Command{
if viper.IsSet("watch.post") {
return fmt.Errorf("commit watching is not supported with --post")
}
if viper.IsSet("watch.cache") {
return fmt.Errorf("commit watching is not supported with local file --cache")
}
}

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

0 comments on commit f1128b5

Please sign in to comment.