-
-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (54 loc) · 1.72 KB
/
scan_msgs.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
50
51
52
53
54
55
56
57
58
59
60
name: Scan Yahoo Messages
on:
push:
branches:
- 'main'
- 'feature/update-to-dotnet-6.0'
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '5 0-19/2 * * *'
# reddit access for golang tests
# since I am an single dev
# what I care about is regression
# making sure my code still works on the reddit api
env:
REMOTE_SELENIUM_KEY: ${{ secrets.REMOTE_SELENIUM_KEY }}
REMOTE_SELENIUM_USERNAME: ${{ secrets.REMOTE_SELENIUM_USERNAME }}
DISCORD_WEBHOOK: ${{ secrets.DISCORD_YAHOO_WEBHOOK}}
jobs:
build:
runs-on: ubuntu-latest
name: Check Messages
steps:
- uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v2
with:
dotnet-version: '7.0.x'
- run: dotnet run --project ConScrap.Cron
- name: Commit files
id: commit
run: |
git pull
echo \n >> CRON.md
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "Add changes"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
- uses: sarisia/actions-status-discord@v1
if: failure()
with:
webhook: ${{ secrets.DISCORD_CODE_STATUS_WEBHOOK }}
status: ${{ job.status }}
title: ${{github.repository}}
description: "Failed to Scan Yahoo Finance Conversations"
nofail: false
nocontext: false
noprefix: false
color: 0x0000ff
username: GitHub Actions