Skip to content

Commit d9aa529

Browse files
Add PostToTwitter bot
1 parent c63cf51 commit d9aa529

File tree

5 files changed

+325
-29
lines changed

5 files changed

+325
-29
lines changed

.github/workflows/PostToTwitter.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: PostToTwitter
2+
3+
on:
4+
schedule:
5+
# * is a special character in YAML so you have to quote this string
6+
- cron: '*/30 * * * *'
7+
8+
on: push #Used for Debug
9+
10+
jobs:
11+
test:
12+
runs-on: macos-latest
13+
steps:
14+
- env:
15+
API_Key: ${{ secrets.API_Key }}
16+
API_Key_Secret: ${{ secrets.API_Key_Secret }}
17+
Access_Token: ${{ secrets.Access_Token }}
18+
Access_Token_Secret: ${{ secrets.Access_Token_Secret }}
19+
20+
- uses: actions/[email protected]
21+
- run: pwd
22+
- uses: julia-actions/setup-julia@v1
23+
with:
24+
version: 1.3.0
25+
- uses: julia-actions/julia-buildpkg@master
26+
- run: julia --project src/StackOverflowBot.jl ${{ secrets.JuliaLangSlackEndPoint }}
27+
28+

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.DS_Store
22
/dev/
3+
.vscode

0 commit comments

Comments
 (0)