Skip to content

Update Subscribes #2227

Update Subscribes

Update Subscribes #2227

Workflow file for this run

name: Update Subscribes
on:
workflow_dispatch:
schedule:
- cron: '45 */6 * * *'
jobs:
Update:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
repository: kimcrowing/Proxy
token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Load Cache
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/run_in_Actions/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Setup Timezone
run: sudo timedatectl set-timezone 'Asia/Shanghai'
- name: Install Requirements
run: |
pip install -r requirements.txt
- name: Update Subscribe
run: |
python main.py
- name: Make Some Difference
run: |
echo "$(date '+%Y-%m-%d %H:%M:%S')" > .timestamp
- name: Commit Changes
run: |
git config core.ignorecase false
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add .
git commit -m "Updated at $(date '+%Y-%m-%d %H:%M:%S')"
git push