Skip to content

Workflow file for this run

name: Daily GitHub New Project
on:
schedule:
- cron: "0 0 * * *"
push:
branches:
- master
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Cache Python dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('actions/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python Dependencies
run: pip install -r actions/requirements.txt
- name: Execute Python Script and Save Output
run: python actions/github_new_project.py > content.html
- name: test echo
run: cat content.html
- name: test2
run: pwd
- name: Send Email
uses: dawidd6/action-send-mail@v3
with:
server_address: smtp.163.com
server_port: 465
username: ${{ secrets.MAIL_USERNAME }}
password: ${{ secrets.MAIL_PASSWORD }}
subject: "GitHub最新项目"
html_body: file://content.html
to: [email protected]
from: GitHub Action