-
-
Notifications
You must be signed in to change notification settings - Fork 59
37 lines (33 loc) · 912 Bytes
/
picker.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
36
37
on:
schedule:
- cron: '0 12 * * 5'
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
clean: false
fetch-depth: 0
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.x'
architecture: 'x64'
- name: Choose a Question Randomly
run: |
python -m pip install pytz
python -m pip install requests
python Picker/random_picker.py
- name: Commit changes
uses: EndBug/add-and-commit@v6
with:
author_name: asdf2014
author_email: asdf2014@apache.org
message: "[Choose a Question Randomly] by 🤖"
path: "Picker README.md README-zh.md"
pattern: "*.*"
force: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}