1
- name : Update CMake
1
+ name : Update Dependencies
2
2
3
3
on :
4
4
pull_request :
5
5
paths :
6
- - ' .github/workflows/update-cmake .yml'
6
+ - ' .github/workflows/update-dependencies .yml'
7
7
- ' scripts/update_cmake_version.py'
8
+ - ' scripts/update_openssl_version.py'
8
9
- ' noxfile.py'
9
10
workflow_dispatch :
10
11
schedule :
11
12
- cron : ' 0 6 * * *' # "At 06:00 every day."
12
13
13
14
jobs :
14
- update-cmake :
15
- name : Update CMake
15
+ update-dep :
16
+ name : Update ${{ matrix.dependency_nice }}
16
17
if : github.repository_owner == 'scikit-build' || github.event_name != 'schedule'
17
18
runs-on : ubuntu-latest
19
+ strategy :
20
+ fail-fast : false
21
+ matrix :
22
+ include :
23
+ - dependency : " cmake"
24
+ dependency_nice : " CMake"
25
+ - dependency : " openssl"
26
+ dependency_nice : " OpenSSL"
18
27
steps :
19
28
- uses : actions/checkout@v4
20
29
21
- - name : " Run update: bump CMake "
22
- id : bump-cmake
30
+ - name : " Run update: bump ${{ matrix.dependency_nice }} "
31
+ id : bump
23
32
run : |
24
- nox --force-color -s bump
25
- echo "version=$(nox -s cmake_version 2>/dev/null)" >> $GITHUB_OUTPUT
26
- - run : echo "CMake version is ${{ steps.bump-cmake .outputs.version }}"
33
+ nox --force-color -s bump${{ matrix.dependency != 'cmake' && format('-{0}', matrix.dependency) || '' }}
34
+ echo "version=$(nox -s ${{ matrix.dependency }}_version 2>/dev/null)" >> $GITHUB_OUTPUT
35
+ - run : echo "${{ matrix.dependency_nice }} version is ${{ steps.bump.outputs.version }}"
27
36
28
37
# we use this step to grab a Github App auth token, so that PRs generated by this workflow
29
38
# run the GHA tests.
@@ -38,13 +47,13 @@ jobs:
38
47
if : github.ref == 'refs/heads/main' && github.repository == 'scikit-build/cmake-python-distributions'
39
48
uses : peter-evans/create-pull-request@v6
40
49
with :
41
- commit-message : ' [Bot] Update to CMake ${{ steps.bump-cmake .outputs.version }}'
42
- title : ' [Bot] Update to CMake ${{ steps.bump-cmake .outputs.version }}'
50
+ commit-message : ' [Bot] Update to ${{ matrix.dependency_nice }} ${{ steps.bump.outputs.version }}'
51
+ title : ' [Bot] Update to ${{ matrix.dependency_nice }} ${{ steps.bump.outputs.version }}'
43
52
body : |
44
- Created by update_cmake_version .py
53
+ Created by update_${{ matrix.dependency }}_version .py
45
54
46
- PR generated by "Update CMake " [workflow](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}).
47
- branch : update-cmake -pr
55
+ PR generated by "Update ${{ matrix.dependency_nice }} " [workflow](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}).
56
+ branch : update-${{ matrix.dependency }} -pr
48
57
committer : " scikit-build-app-bot[bot] <173546081+scikit-build-app-bot[bot]@users.noreply.github.com>"
49
58
author : " scikit-build-app-bot[bot] <173546081+scikit-build-app-bot[bot]@users.noreply.github.com>"
50
59
token : ${{ steps.app-token.outputs.token }}
0 commit comments