-
-
Notifications
You must be signed in to change notification settings - Fork 164
43 lines (41 loc) · 1.58 KB
/
discord.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
43
name: "Discord"
on:
schedule:
- cron: "0 */1 * * *" # every 1 hour
# - cron: "0 0 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cache Tags
id: cache-tags
uses: actions/cache@v4
with:
path: watch-cache
key: ${{ runner.os }}-watch-cache
- name: Package Installer
run: |
sudo snap install ipsw
- name: Check Cache
run: |
cat watch-cache || echo "No cache found"
- name: Run ipsw watch WebKit/WebKit
run: |
/snap/bin/ipsw watch WebKit/WebKit --pattern '(?i)Lockdown Mode' --days 1 --cache watch-cache \
--api ${{ secrets.GITHUB_TOKEN }} \
--discord \
--discord-id ${{ secrets.DISCORD_ID }} \
--discord-token ${{ secrets.DISCORD_TOKEN }} \
--discord-icon "https://raw.githubusercontent.com/blacktop/ipsw/master/www/static/img/webkit.png"
- name: Run ipsw watch apple-oss-distributions/distribution-macOS
run: |
/snap/bin/ipsw watch apple-oss-distributions/distribution-macOS --tags --cache watch-cache \
--api ${{ secrets.GITHUB_TOKEN }} \
--discord \
--discord-id ${{ secrets.DISCORD_ID }} \
--discord-token ${{ secrets.DISCORD_TOKEN }} \
--discord-icon "https://avatars.githubusercontent.com/u/91919287" \
--mastodon \
--mastodon-client-id ${{ secrets.MASTODON_CLIENT_ID }} \
--mastodon-client-secret ${{ secrets.MASTODON_CLIENT_SECRET }} \
--mastodon-access-token ${{ secrets.MASTODON_ACCESS_TOKEN }}