Skip to content

Commit 6e95a44

Browse files
committed
Updated GitHub workflow dependencies
1 parent 439b85a commit 6e95a44

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.github/workflows/validate-and-update.yml

+14-11
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
runs-on: ubuntu-latest
1111
name: JSON Schema validation through pre-commit
1212
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
1515
with:
1616
extra_args: --all -c .pre-commit-config.yaml
1717
generate-charts:
@@ -23,13 +23,13 @@ jobs:
2323
matrix:
2424
schema-version: [ "0.4.x", "1.0.x", "2.0.x" ]
2525
steps:
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2727
with:
2828
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
3131
with:
32-
python-version: "3.8"
32+
python-version: "3.9"
3333
cache: 'pip'
3434
architecture: x64
3535
cache-dependency-path: 'dev-requirements.txt'
@@ -67,9 +67,10 @@ jobs:
6767
dot -Tpng openebench-bdm-${{ matrix.schema-version }}.dot -o openebench-bdm-${{ matrix.schema-version }}.dot.png
6868
dot -Tpdf openebench-bdm-${{ matrix.schema-version }}.dot -o openebench-bdm-${{ matrix.schema-version }}.dot.pdf
6969
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
7171
if: steps.generate-if-changed.outcome == 'success'
7272
with:
73+
name: charts-${{ matrix.schema-version }}
7374
retention-days: 2
7475
path: openebench-bdm-${{ matrix.schema-version }}.dot*
7576

@@ -79,23 +80,25 @@ jobs:
7980
needs:
8081
- generate-charts
8182
steps:
82-
- uses: actions/checkout@v3
83+
- uses: actions/checkout@v4
8384
- id: download
84-
uses: actions/download-artifact@v3
85+
uses: actions/download-artifact@v4
8586
with:
87+
pattern: charts-*
88+
merge-multiple: true
8689
path: charts-dir
8790
- id: move
8891
name: Move charts to their right place
8992
run: |
9093
skip=true
9194
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/
9396
skip=false
9497
fi
9598
echo "skip=$skip" >> "$GITHUB_OUTPUT"
9699
- name: Create Pull Request
97100
id: cpr
98-
uses: peter-evans/create-pull-request@v5
101+
uses: peter-evans/create-pull-request@v7
99102
if: steps.move.outputs.skip == 'false'
100103
with:
101104
title: Updated schemas documentation (triggered by ${{ github.sha }})

0 commit comments

Comments
 (0)