From c09d6f1ecdc5e59e3ecfdd64e8e273c8bf524ca8 Mon Sep 17 00:00:00 2001 From: Edward Banner Date: Tue, 17 Sep 2024 11:23:20 -0400 Subject: [PATCH] Update slack.rb --- .github/workflows/push-events-daily.yml | 24 ++++++++++++++++++++++++ .github/workflows/push-events.yml | 6 ++++-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/push-events-daily.yml diff --git a/.github/workflows/push-events-daily.yml b/.github/workflows/push-events-daily.yml new file mode 100644 index 0000000..c495818 --- /dev/null +++ b/.github/workflows/push-events-daily.yml @@ -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 }} diff --git a/.github/workflows/push-events.yml b/.github/workflows/push-events.yml index 0aa4478..a3d8286 100644 --- a/.github/workflows/push-events.yml +++ b/.github/workflows/push-events.yml @@ -8,7 +8,7 @@ on: jobs: syndicate: name: "Post events" - runs-on: ubuntu-latest + runs-on: self-hosted steps: - name: "Check out repository" @@ -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 }}