-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (32 loc) · 994 Bytes
/
Copy pathcheck-pubdev-and-notify.yml
File metadata and controls
37 lines (32 loc) · 994 Bytes
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
name: Check pub.dev and Notify Discord
on:
schedule:
# Check every 30 minutes
- cron: "*/30 * * * *"
workflow_dispatch:
inputs:
force_check:
description: "Force check even if version exists"
required: false
type: boolean
default: false
jobs:
check-and-notify:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install dependencies
run: pip install requests pyyaml
- name: Check pub.dev and notify
env:
DISCORD_RELEASE_WEBHOOK: ${{ secrets.DISCORD_RELEASE_WEBHOOK }}
DISCORD_MAP: ${{ secrets.DISCORD_MAP }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_NAME: ${{ github.repository }}
FORCE_CHECK: ${{ inputs.force_check }}
run: python .github/scripts/check_pubdev_and_notify.py