Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Commit 019c613

Browse files
committed
varnish and workflows
1 parent d1d7d55 commit 019c613

File tree

4 files changed

+81
-1
lines changed

4 files changed

+81
-1
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Check All URLs
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
# Cron syntax has five fields separated by a space, and each field represents a unit of time.
7+
#
8+
# ┌───────────── minute (0 - 59)
9+
# │ ┌───────────── hour (0 - 23)
10+
# │ │ ┌───────────── day of the month (1 - 31)
11+
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
12+
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
13+
# │ │ │ │ │
14+
# │ │ │ │ │
15+
# │ │ │ │ │
16+
# * * * * *
17+
# * is a special character in YAML so you have to quote this string
18+
- cron: '0 0 7 * *' # midnight on the seventh day (arbitrary) of every month
19+
20+
jobs:
21+
build:
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- uses: actions/checkout@v3
26+
27+
# We maintain the list of the URLs excluded from checking in a separate file so that we can use
28+
# it in multiple workflows, while easily maintaining consistency.
29+
- name: Read exclude-urls list
30+
id: exclude
31+
uses: juliangruber/read-file-action@v1
32+
with:
33+
path: ./.github/workflows/exclude-urls.txt
34+
35+
- name: urls-checker
36+
uses: urlstechie/urlchecker-action@0.0.33
37+
with:
38+
# Use common exclude list read in above
39+
exclude_urls: ${{ steps.exclude.outputs.content }}
40+
timeout: 10
41+
retry_count: 3
42+
print_all: false
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Check URLs in Changed Files
2+
3+
on: [pull_request, push, workflow_dispatch]
4+
5+
jobs:
6+
urlchecks:
7+
name: check-urls
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- id: files
14+
# uses: jitterbit/get-changed-files@v1 ### Hasn't been updated to Node16
15+
uses: masesgroup/retrieve-changed-files@v2
16+
with:
17+
format: 'csv'
18+
19+
# We maintain the list of the URLs excluded from checking in a separate file so that we can use
20+
# it in multiple workflows, while easily maintaining consistency.
21+
- name: Read exclude-urls list
22+
id: exclude
23+
uses: juliangruber/read-file-action@v1
24+
with:
25+
path: ./.github/workflows/exclude-urls.txt
26+
27+
# Run URL checks
28+
- name: URLs-checker
29+
uses: urlstechie/urlchecker-action@0.0.33
30+
with:
31+
# only include the changed files
32+
include_files: ${{ steps.files.outputs.added_modified }}
33+
# Use common exclude list read in above
34+
exclude_urls: ${{ steps.exclude.outputs.content }}
35+
timeout: 10
36+
retry_count: 3
37+
print_all: false

.github/workflows/exclude-urls.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
http://www.example.com/foo/LICENSE

config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ profiles:
8585
# This space below is where custom yaml items (e.g. pinning
8686
# sandpaper and varnish versions) should live
8787

88-
88+
varnish: intersect-training/varnish

0 commit comments

Comments
 (0)