update #84
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: update | |
on: | |
schedule: | |
- cron: "0 8 * * 0" | |
workflow_dispatch: | |
inputs: | |
message: | |
description: "Message for build" | |
required: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: "main" | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- run: | | |
echo ${{ secrets.GITHUB_TOKEN }} >> access_token.txt | |
pip install requests && python list2md.py | |
- name: update the list | |
env: | |
GITHUB_USER: "stradivari96" | |
GITHUB_EMAIL: "[email protected]" | |
run: | | |
git config user.name "${GITHUB_USER}" | |
git config user.email "${GITHUB_EMAIL}" | |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git | |
git checkout main | |
git commit -am "chore: auto update" | |
git push -u origin main |