Commit 3bf1f5c 1 parent e38af5d commit 3bf1f5c Copy full SHA for 3bf1f5c
File tree 2 files changed +18
-3
lines changed
2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Do NOT update manually; changes here will be overwritten by Copier
2
- _commit : 719579f
2
+ _commit : 00cee12
3
3
_src_path : https://github.com/ingadhoc/addons-repo-template.git
4
4
description : Odoo Invoicing Extension Addons
5
5
is_private : false
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ name: pre-commit
6
6
7
7
on :
8
8
push :
9
- branches : " * .0"
10
- pull_request :
9
+ branches : " [0-9][0-9] .0"
10
+ pull_request_target :
11
11
12
12
jobs :
13
13
pre-commit :
16
16
-
17
17
name : Checkout
18
18
uses : actions/checkout@v4
19
+ with :
20
+ ref : ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.ref }}
19
21
-
20
22
id : setup-python
21
23
name : Setup Python
30
32
path : ~/.cache/pre-commit
31
33
key : pre-commit|${{ steps.setup-python.outputs.python-version }}|${{ hashFiles('.pre-commit-config.yaml') }}
32
34
-
35
+ id : precommit
33
36
name : Pre-commit
34
37
uses : pre-commit/action@v3.0.1
38
+ -
39
+ name : Create commit status
40
+ if : github.event_name == 'pull_request_target'
41
+ run : |
42
+ curl -L \
43
+ -X POST \
44
+ -H "Accept: application/vnd.github+json" \
45
+ -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
46
+ -H "X-GitHub-Api-Version: 2022-11-28" \
47
+ https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.event.pull_request.head.sha }} \
48
+ -d '{"state":"${{ steps.precommit.outcome }}","context":"mergebot/pre-commit"}' \
49
+ --fail
You can’t perform that action at this time.
0 commit comments