-
Notifications
You must be signed in to change notification settings - Fork 24
41 lines (40 loc) · 1.1 KB
/
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
36
37
38
39
40
41
name: 'GitHub Actions BingPicApi'
on:
push:
branches:
- master
schedule:
- cron: '0 16 * * *'
jobs:
Bing-spider:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: 'Set up Python'
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: 'Install dependencies'
run: python -m pip install --upgrade pip
- name: 'Install requirements'
run: pip install -r ./requirements.txt
- name: 'Working'
timeout-minutes: 350
run: bash ./main.sh
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A
git commit -m "✅ add a BingPic" -a
- name: 'Push changes'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.TOKEN }}
- name: 'Create a Release'
uses: elgohr/Github-Release-Action@v5
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
args: BingImage