-
Notifications
You must be signed in to change notification settings - Fork 59
42 lines (34 loc) · 1.03 KB
/
lictool.yaml
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
on:
pull_request:
push:
branches: [main]
jobs:
lictool:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
if: ${{ github.event_name != 'pull_request' }}
- name: Checkout pull request
uses: actions/checkout@v4
if: ${{ github.event_name == 'pull_request' }}
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Set up Python 3
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Set git author to @actions
uses: fregante/setup-git-user@v2
- name: Install lictool
run: pip install git+https://github.com/emzeat/[email protected]
- name: Run lictool
run: lictool
- name: Commit and push
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: "[ci] update license header"
push: true
fetch: false