Generate ExtSentry Feeds #510
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |