forked from ringcentral/slate
-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (35 loc) · 891 Bytes
/
verify.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
name: Verify
on:
pull_request:
branches: [ '*' ]
jobs:
verify-template-resource:
runs-on: ubuntu-latest
strategy:
matrix:
resource: [
"index.html.external.md",
"index.html.internal.md",
"fonts",
"includes",
"javascripts",
"layouts",
"stylesheets",
"downloads"
]
steps:
- name: Accessing github project files
uses: actions/checkout@v2
- name: Validate Resource
run: |
RESOURCE_PATH=./source/${{ matrix.resource }}
RESOURCE_TYPE=-d
if [[ ${{ matrix.resource }} == *.* ]] ; then
RESOURCE_TYPE=-f
fi
if test $RESOURCE_TYPE "$RESOURCE_PATH"; then
echo "Resource $RESOURCE_PATH exists."
else
echo "Resource $RESOURCE_PATH does not exists."
exit 1
fi