File tree 3 files changed +15
-1
lines changed
3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 18
18
- uses : pre-commit/action@v3.0.1
19
19
- run : |
20
20
python -m pip install 'ruamel.yaml'
21
- python sort_regressionfiles_yaml.py
21
+ if ! python sort_regressionfiles_yaml.py > regressionfiles.diff; then
22
+ echo "difference found:"
23
+ cat regressionfiles.diff
24
+ if ! patch -p1 -i regressionfiles.diff regressionfiles.yaml; then
25
+ echo "patch didn't apply cleanly"
26
+ else
27
+ echo "patch applied cleanly"
28
+ fi
29
+ exit 1
30
+ fi
Original file line number Diff line number Diff line change 2
2
.idea
3
3
4
4
regressionfiles.diff
5
+ regressionfiles.yaml.orig
5
6
regressionfiles_nocomments.yaml
6
7
regressionfiles_sorted.yaml
7
8
Original file line number Diff line number Diff line change 9
9
rev : " v5.0.0"
10
10
hooks :
11
11
- id : check-yaml
12
+ - repo : https://github.com/Mateusz-Grzelinski/actionlint-py
13
+ rev : " v1.7.3.17"
14
+ hooks :
15
+ - id : actionlint
You can’t perform that action at this time.
0 commit comments