10
10
runs-on : ubuntu-latest
11
11
name : JSON Schema validation through pre-commit
12
12
steps :
13
- - uses : actions/checkout@v3
14
- - uses : pre-commit/action@v3.0.0
13
+ - uses : actions/checkout@v4
14
+ - uses : pre-commit/action@v3.0.1
15
15
with :
16
16
extra_args : --all -c .pre-commit-config.yaml
17
17
generate-charts :
@@ -23,13 +23,13 @@ jobs:
23
23
matrix :
24
24
schema-version : [ "0.4.x", "1.0.x", "2.0.x" ]
25
25
steps :
26
- - uses : actions/checkout@v3
26
+ - uses : actions/checkout@v4
27
27
with :
28
28
fetch-depth : 100
29
- - uses : ts-graphviz/setup-graphviz@v1
30
- - uses : actions/setup-python@v4
29
+ - uses : ts-graphviz/setup-graphviz@v2
30
+ - uses : actions/setup-python@v5
31
31
with :
32
- python-version : " 3.8 "
32
+ python-version : " 3.9 "
33
33
cache : ' pip'
34
34
architecture : x64
35
35
cache-dependency-path : ' dev-requirements.txt'
67
67
dot -Tpng openebench-bdm-${{ matrix.schema-version }}.dot -o openebench-bdm-${{ matrix.schema-version }}.dot.png
68
68
dot -Tpdf openebench-bdm-${{ matrix.schema-version }}.dot -o openebench-bdm-${{ matrix.schema-version }}.dot.pdf
69
69
dot -Tsvg openebench-bdm-${{ matrix.schema-version }}.dot -o openebench-bdm-${{ matrix.schema-version }}.dot.svg
70
- - uses : actions/upload-artifact@v3
70
+ - uses : actions/upload-artifact@v4
71
71
if : steps.generate-if-changed.outcome == 'success'
72
72
with :
73
+ name : charts-${{ matrix.schema-version }}
73
74
retention-days : 2
74
75
path : openebench-bdm-${{ matrix.schema-version }}.dot*
75
76
@@ -79,23 +80,25 @@ jobs:
79
80
needs :
80
81
- generate-charts
81
82
steps :
82
- - uses : actions/checkout@v3
83
+ - uses : actions/checkout@v4
83
84
- id : download
84
- uses : actions/download-artifact@v3
85
+ uses : actions/download-artifact@v4
85
86
with :
87
+ pattern : charts-*
88
+ merge-multiple : true
86
89
path : charts-dir
87
90
- id : move
88
91
name : Move charts to their right place
89
92
run : |
90
93
skip=true
91
94
if [ -d "${{steps.download.outputs.download-path}}" ] ; then
92
- mv "${{steps.download.outputs.download-path}}"/artifact/ * json-schemas/
95
+ mv "${{steps.download.outputs.download-path}}"/* json-schemas/
93
96
skip=false
94
97
fi
95
98
echo "skip=$skip" >> "$GITHUB_OUTPUT"
96
99
- name : Create Pull Request
97
100
id : cpr
98
- uses : peter-evans/create-pull-request@v5
101
+ uses : peter-evans/create-pull-request@v7
99
102
if : steps.move.outputs.skip == 'false'
100
103
with :
101
104
title : Updated schemas documentation (triggered by ${{ github.sha }})
0 commit comments