Skip to content

Commit 15c866e

Browse files
committed
Adds actions for travellers and cities checks based on path
1 parent e66af75 commit 15c866e

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/city-check.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Check Cities
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- web_source/cities/**
9+
pull_request:
10+
branches:
11+
- main
12+
paths:
13+
- web_source/cities/**
14+
workflow_dispatch:
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Check out repository
21+
uses: actions/checkout@v4
22+
- uses: tj-actions/changed-files@v46
23+
id: changed-cities-files
24+
with:
25+
base_sha: 'main'
26+
files: web_source/cities/**/*.md
27+
- name: Checks travellers links
28+
id: lychee
29+
uses: lycheeverse/lychee-action@v2
30+
env:
31+
ALL_CHANGED_FILES: ${{ steps.changed-cities-files.outputs.all_changed_files }}
32+
with:
33+
args: "--no-progress web_source/travellers --verbose -- ${ALL_CHANGED_FILES}"
34+
fail: true
35+
jobSummary: true

.github/workflows/traveller-check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ on:
44
push:
55
branches:
66
- main
7+
paths:
8+
- web_source/travellers/**
79
pull_request:
810
branches:
911
- main
12+
paths:
13+
- web_source/travellers/**
1014
workflow_dispatch:
1115

1216
jobs:

0 commit comments

Comments
 (0)