Skip to content

Slack bot: Financial Times #1289

Slack bot: Financial Times

Slack bot: Financial Times #1289

Workflow file for this run

name: 'Slack bot: Financial Times'
on:
workflow_dispatch:
schedule:
- cron: "0 0,6,12,18 * * *"
jobs:
archive:
name: Archive
runs-on: ubuntu-latest
timeout-minutes: 60
continue-on-error: true
strategy:
fail-fast: false
matrix:
source: [bbc, business, ft, guardian, nytimes, telegraph, thetimes, washingtonpost, wsj]
steps:
- id: checkout
name: Checkout
timeout-minutes: 5
uses: actions/checkout@v4
- id: install
timeout-minutes: 5
name: Install Python dependencies
uses: ./.github/actions/install
- id: mk-dist-dir
name: Create distribution directory
run: mkdir _dist
shell: bash
- id: screenshot-cropped
name: Screenshot (cropped)
timeout-minutes: 5
uses: ./.github/actions/screenshot-cropped
with:
source: ${{ matrix.source }}
- id: post-to-slack
name: Post to Slack
run: pipenv run newshomepages-slack ${{ matrix.source }} -i _dist -v
env:
SLACK_WEBHOOK_URL: ${{ secrets.FT_SLACK_WEBHOOK_URL }}
IA_ACCESS_KEY: ${{ secrets.IA_ACCESS_KEY }}
IA_SECRET_KEY: ${{ secrets.IA_SECRET_KEY }}
IA_COLLECTION: ${{ secrets.IA_COLLECTION }}