Notify expired documentation #147
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Notify expired documentation | |
on: | |
schedule: | |
- cron: '5 12 * * 1-5' # 12:05 UTC, Monday to Friday | |
workflow_dispatch: | |
jobs: | |
slack-notification: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: notify:expired | |
run: bundle exec rake notify:expired | |
env: | |
REALLY_POST_TO_SLACK: ${{ (github.event_name == 'schedule') && 1 || 0 }} | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} | |
OVERRIDE_SLACK_MESSAGE_PREFIX: "Please ensure that the Public API documentation is up to date." |