Multi-Airport Check-in #47
This file contains 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: Multi-Airport Check-in | |
on: | |
schedule: | |
- cron: '0 17 * * *' # 每天7点(UTC时间)执行,CRON表达式 | |
workflow_dispatch: # 允许手动触发工作流 | |
jobs: | |
checkin: | |
runs-on: ubuntu-latest # 使用最新的 Ubuntu 镜像 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' # 你可以选择 Python 版本 | |
- name: Install requests | |
run: | | |
python -m pip install --upgrade pip | |
pip install requests | |
- name: Run check-in script | |
env: | |
ACCOUNT1: ${{ secrets.ACCOUNT1 }} | |
ACCOUNT2: ${{ secrets.ACCOUNT2 }} | |
ACCOUNT3: ${{ secrets.ACCOUNT3 }} | |
ACCOUNT4: ${{ secrets.ACCOUNT4 }} | |
ACCOUNT5: ${{ secrets.ACCOUNT5 }} | |
ACCOUNT6: ${{ secrets.ACCOUNT6 }} | |
SCKEY: ${{ secrets.SCKEY }} | |
run: | | |
python checkin.py |