forked from checkstyle/checkstyle
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 896 Bytes
/
run-link-check.yml
File metadata and controls
33 lines (28 loc) · 896 Bytes
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
#####################################################################################
# GitHub Action to run link checks.
#
# Workflow starts when:
# 1) push on master branch
#
#####################################################################################
name: "Check no broken links"
on:
push:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
check_issues:
if: github.repository == 'checkstyle/checkstyle'
runs-on: ubuntu-22.04
steps:
- name: Download checkstyle
uses: actions/checkout@v4
- name: Setup local maven cache
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: checkstyle-maven-cache-${{ hashFiles('**/pom.xml') }}
- name: Check links
run: ./.ci/run-link-check-plugin.sh