-
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (36 loc) · 1.04 KB
/
generate_feeds.yml
File metadata and controls
43 lines (36 loc) · 1.04 KB
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: Generate ExtSentry Feeds
on:
schedule:
# Run daily at 06:00 UTC
- cron: '*/45 * * * *'
workflow_dispatch: # Allow manual trigger from Actions tab
push:
branches: [main]
paths:
- 'generate_feeds.py'
- 'browser_extensions_list.csv'
permissions:
contents: write
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Generate feeds
run: python3 generate_feeds.py
- name: Commit and push updated feeds
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add feeds/ browser_extensions_list.csv
if git diff --cached --quiet; then
echo "No changes to commit"
else
git commit -m "chore: update feeds $(date -u +%Y-%m-%d)"
git push
fi