-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 982 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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