Merge branch 'main' into advice #33
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: Check Redirects | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
check_redirects: | |
runs-on: ubuntu-latest | |
name: Check Redirects Job | |
timeout-minutes: 60 | |
steps: | |
- name: Give GitBook a few seconds till it has processed everything | |
run: sleep 60s | |
shell: bash | |
if: "!cancelled()" | |
- name: Check Redirects | |
uses: steadybit/[email protected] | |
if: "!cancelled()" | |
- name: Notify Slack channel | |
uses: 8398a7/action-slack@v3 | |
with: | |
channel: '#test-docs' | |
status: ${{ job.status }} | |
text: Found broken redirects in docs | |
fields: workflow,action | |
author_name: github | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required | |
if: failure() |