Skip to content

CI

CI #83

Workflow file for this run

name: CI
on:
schedule:
- cron: 0 0 * * 0
push:
branches:
- master
paths:
- '.github/workflows/*.yml'
- 'rules.txt'
pull_request:
branches:
- master
workflow_dispatch:
jobs:
main:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.9.7"
- run: python -m pip install --upgrade pip
- run: pip install genpac
- run: genpac --format pac --user-rule-from ./rules.txt --pac-proxy "SOCKS5 127.0.0.1:1080" > ./pac.txt
- uses: josStorer/get-current-time@v2
id: time
with:
format: yyyy-MM-DD
- uses: EndBug/add-and-commit@v9
if: github.event_name != 'pull_request'
with:
message: "chore: ${{ steps.time.outputs.formattedTime }} update pac.txt"
add: pac.txt
author_name: "github-actions[bot]"
author_email: "github-actions[bot]@users.noreply.github.com"