-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (44 loc) · 1.52 KB
/
link-check-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Check new links against deployment
# This workflow "triggers" and skips on deployment because GitHub Actions /
# Checks refuses to show the check on deployment_status
on:
- deployment
- deployment_status
jobs:
run:
name: Initialize
runs-on: ubuntu-latest
if: github.event.deployment.ref != 'master' && github.event.deployment_status.state == 'success'
steps:
- uses: actions/checkout@v2
- id: build_check
uses: LouisBrunner/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: Report
status: queued
- name: Run Link Check
id: check
uses: 'iterative/[email protected]'
with:
diff: true
configFile: './config/config.yml'
rootURL: '${{ github.event.deployment.payload.web_url }}'
output: checksAction
- uses: LouisBrunner/[email protected]
if: ${{ success() }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
check_id: ${{ steps.build_check.outputs.check_id }}
status: completed
conclusion: ${{ steps.check.outputs.conclusion }}
output: ${{ steps.check.outputs.output }}
- uses: LouisBrunner/[email protected]
if: ${{ failure() }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
check_id: ${{ steps.build_check.outputs.check_id }}
status: completed
conclusion: failure
output: >-
{"summary": "The Link Check script had an error!"}