Skip to content

Commit c09d6f1

Browse files
committed
Update slack.rb
1 parent 87c11f2 commit c09d6f1

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Push events daily"
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 15 * * *'
7+
8+
jobs:
9+
syndicate:
10+
name: "Post events"
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: "Check out repository"
15+
uses: actions/checkout@v3
16+
17+
- uses: ruby/setup-ruby@v1
18+
with:
19+
bundler-cache: true
20+
21+
- run: bundle exec ruby main.rb --destinations=TD
22+
env:
23+
SYN_ENV: production
24+
TD_SLACK_WEBHOOK: ${{ secrets.TD_SLACK_WEBHOOK }}

.github/workflows/push-events.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
syndicate:
1010
name: "Post events"
11-
runs-on: ubuntu-latest
11+
runs-on: self-hosted
1212

1313
steps:
1414
- name: "Check out repository"
@@ -18,7 +18,9 @@ jobs:
1818
with:
1919
bundler-cache: true
2020

21-
- run: bundle exec ruby main.rb --destinations=TD
21+
- run: bundle exec ruby main.rb
2222
env:
2323
SYN_ENV: production
2424
TD_SLACK_WEBHOOK: ${{ secrets.TD_SLACK_WEBHOOK }}
25+
TBT_SLACK_WEBHOOK: ${{ secrets.TBT_SLACK_WEBHOOK }}
26+
TBUX_SLACK_WEBHOOK: ${{ secrets.TBUX_SLACK_WEBHOOK }}

0 commit comments

Comments
 (0)