brush step #104
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: brush step | |
| on: | |
| #push: | |
| # branches: [ main ] | |
| #pull_request: | |
| # branches: [ main ] | |
| schedule: | |
| - cron: '52 1,2,3 * * *' | |
| watch: | |
| types: started | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout codes | |
| uses: actions/checkout@v2 | |
| - name: Update system and install zsh | |
| run: | | |
| sudo -E apt-get -qq update | |
| sudo -E apt-get install zsh -y | |
| - name: 初始化Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.8 | |
| - name: 开始 | |
| run: | | |
| pip3 install requests pytz pycryptodome | |
| user='${{ secrets.USER }}' | |
| passwd='${{ secrets.PWD }}' | |
| open_get_weather='${{ secrets.OPEN_GET_WEATHER }}' | |
| area='${{ secrets.AREA }}' | |
| python3 main.py ${user} ${passwd} ${open_get_weather} ${area} |