forked from DPDBaltics/PrestaShop-1.7
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (48 loc) · 1.53 KB
/
index.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Indexing and licensing
on: [pull_request]
jobs:
autoindex:
name: Adds index files
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache vendor folder
uses: actions/cache@v1
with:
path: vendor
key: php-${{ hashFiles('composer.lock') }}
- name: Cache composer folder
uses: actions/cache@v1
with:
path: ~/.composer/cache
key: php-composer-cache
- run: composer install
- name: Run auto indexing
run: php vendor/bin/autoindex
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Adding auto indexes
# Add license comments above code in every file
license-addition:
name: license addition
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache vendor folder
uses: actions/cache@v1
with:
path: vendor
key: php-${{ hashFiles('composer.lock') }}
- name: Cache composer folder
uses: actions/cache@v1
with:
path: ~/.composer/cache
key: php-composer-cache
- run: composer install
- name: Adding licenses
run: vendor/bin/header-stamp --license=assets/afl.txt --exclude=vendor,node_modules
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automatic license addition applying