-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (45 loc) · 1.27 KB
/
check_manga.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
42
43
44
45
46
47
48
49
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '50 * * * *'
push:
branches:
- main
env:
REDDIT_CLIENT_ID: ${{ secrets.REDDIT_CLIENT_ID }}
REDDIT_CLIENT_SECRET: ${{ secrets.REDDIT_CLIENT_SECRET }}
REDDIT_PASSWORD: ${{ secrets.REDDIT_PASSWORD }}
REDDIT_USERNAME: ${{ secrets.REDDIT_USERNAME }}
DISCORD_WEBHOOK: ${{ secrets.DISCORD_REDDIT_WEBHOOK}}
name: Send Updates
jobs:
run:
strategy:
matrix:
go-version: [1.15.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Run job
run: go run cmd/scan_sr/manga.go
- name: Commit files
id: commit
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add internal/*.csv
git commit -m "Updating csv"
continue-on-error: true
- name: Push changes
uses: ad-m/github-push-action@master
continue-on-error: true
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}