-
Notifications
You must be signed in to change notification settings - Fork 6
30 lines (29 loc) · 881 Bytes
/
main.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
name: Validate contents of diffusion-output-list
on:
push:
pull_request:
jobs:
Validate:
name: Validate
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Unique
uses: norwd/grawk@v1
if: success() || failure()
with:
program: 'a[$0]++{exit(1)}'
input-file: diffusion-output-list
- name: Alphabetical
if: success() || failure()
run: sort -c diffusion-output-list
- name: No WWW prefix
if: success() || failure()
run: bash -c "! grep '^www\.' diffusion-output-list"
- name: No M (mobile) prefix
if: success() || failure()
run: bash -c "! grep '^m\.' diffusion-output-list"
- name: No HTTP(s) prefix
if: success() || failure()
run: bash -c "! grep '^https*://' diffusion-output-list"