Skip to content

Commit

Permalink
Update slack.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
ebanner committed Sep 17, 2024
1 parent 87c11f2 commit c09d6f1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/push-events-daily.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Push events daily"

on:
workflow_dispatch:
schedule:
- cron: '0 15 * * *'

jobs:
syndicate:
name: "Post events"
runs-on: ubuntu-latest

steps:
- name: "Check out repository"
uses: actions/checkout@v3

- uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- run: bundle exec ruby main.rb --destinations=TD
env:
SYN_ENV: production
TD_SLACK_WEBHOOK: ${{ secrets.TD_SLACK_WEBHOOK }}
6 changes: 4 additions & 2 deletions .github/workflows/push-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
syndicate:
name: "Post events"
runs-on: ubuntu-latest
runs-on: self-hosted

steps:
- name: "Check out repository"
Expand All @@ -18,7 +18,9 @@ jobs:
with:
bundler-cache: true

- run: bundle exec ruby main.rb --destinations=TD
- run: bundle exec ruby main.rb
env:
SYN_ENV: production
TD_SLACK_WEBHOOK: ${{ secrets.TD_SLACK_WEBHOOK }}
TBT_SLACK_WEBHOOK: ${{ secrets.TBT_SLACK_WEBHOOK }}
TBUX_SLACK_WEBHOOK: ${{ secrets.TBUX_SLACK_WEBHOOK }}

0 comments on commit c09d6f1

Please sign in to comment.