forked from scikit-build/cmake-python-distributions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add update OpenSSL workflow (scikit-build#526)
- Loading branch information
Showing
2 changed files
with
33 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,38 @@ | ||
name: Update CMake | ||
name: Update Dependencies | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '.github/workflows/update-cmake.yml' | ||
- '.github/workflows/update-dependencies.yml' | ||
- 'scripts/update_cmake_version.py' | ||
- 'scripts/update_openssl_version.py' | ||
- 'noxfile.py' | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 6 * * *' # "At 06:00 every day." | ||
|
||
jobs: | ||
update-cmake: | ||
name: Update CMake | ||
update-dep: | ||
name: Update ${{ matrix.dependency_nice }} | ||
if: github.repository_owner == 'scikit-build' || github.event_name != 'schedule' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- dependency: "cmake" | ||
dependency_nice: "CMake" | ||
- dependency: "openssl" | ||
dependency_nice: "OpenSSL" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: wntrblm/[email protected] | ||
- name: "Run update: bump CMake" | ||
id: bump-cmake | ||
- name: "Run update: bump ${{ matrix.dependency_nice }}" | ||
id: bump | ||
run: | | ||
nox --force-color -s bump | ||
echo "version=$(nox -s cmake_version 2>/dev/null)" >> $GITHUB_OUTPUT | ||
- run: echo "CMake version is ${{ steps.bump-cmake.outputs.version }}" | ||
nox --force-color -s bump${{ matrix.dependency != 'cmake' && format('-{0}', matrix.dependency) || '' }} | ||
echo "version=$(nox -s ${{ matrix.dependency }}_version 2>/dev/null)" >> $GITHUB_OUTPUT | ||
- run: echo "${{ matrix.dependency_nice }} version is ${{ steps.bump.outputs.version }}" | ||
|
||
# we use this step to grab a Github App auth token, so that PRs generated by this workflow | ||
# run the GHA tests. | ||
|
@@ -38,13 +47,13 @@ jobs: | |
if: github.ref == 'refs/heads/main' && github.repository == 'scikit-build/cmake-python-distributions' | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
commit-message: '[Bot] Update to CMake ${{ steps.bump-cmake.outputs.version }}' | ||
title: '[Bot] Update to CMake ${{ steps.bump-cmake.outputs.version }}' | ||
commit-message: '[Bot] Update to ${{ matrix.dependency_nice }} ${{ steps.bump.outputs.version }}' | ||
title: '[Bot] Update to ${{ matrix.dependency_nice }} ${{ steps.bump.outputs.version }}' | ||
body: | | ||
Created by update_cmake_version.py | ||
Created by update_${{ matrix.dependency }}_version.py | ||
PR generated by "Update CMake" [workflow](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}). | ||
branch: update-cmake-pr | ||
PR generated by "Update ${{ matrix.dependency_nice }}" [workflow](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}). | ||
branch: update-${{ matrix.dependency }}-pr | ||
committer: "scikit-build-app-bot[bot] <173546081+scikit-build-app-bot[bot]@users.noreply.github.com>" | ||
author: "scikit-build-app-bot[bot] <173546081+scikit-build-app-bot[bot]@users.noreply.github.com>" | ||
token: ${{ steps.app-token.outputs.token }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters