From b771644766dde734b6d2bc2d51796f86a8cb0954 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Thu, 29 Aug 2024 15:50:14 +0200 Subject: [PATCH] CI: Update actions --- .github/workflows/ci.yaml | 4 ++-- .github/workflows/format.yaml | 4 ++-- .github/workflows/prerelease.yaml | 23 ++++++++++++++--------- .pre-commit-config.yaml | 2 +- 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c6dac0be..a8253797 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,6 +16,6 @@ jobs: - {ROS_DISTRO: noetic, ROS_REPO: testing} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: 'ros-industrial/industrial_ci@master' + - uses: actions/checkout@v4 + - uses: ros-industrial/industrial_ci@master env: ${{ matrix.env }} diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml index 497312bd..e3deb4c1 100644 --- a/.github/workflows/format.yaml +++ b/.github/workflows/format.yaml @@ -13,10 +13,10 @@ jobs: name: Format runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install clang-format-10 run: sudo apt-get install clang-format-10 - - uses: pre-commit/action@v3.0.0 + - uses: pre-commit/action@v3.0.1 - name: Upload pre-commit changes if: failure() && steps.precommit.outcome == 'failure' uses: rhaschke/upload-git-patch-action@main diff --git a/.github/workflows/prerelease.yaml b/.github/workflows/prerelease.yaml index fab4deca..4e280db3 100644 --- a/.github/workflows/prerelease.yaml +++ b/.github/workflows/prerelease.yaml @@ -3,22 +3,27 @@ name: pre-release -on: [workflow_dispatch] +on: + workflow_dispatch: + inputs: + ROS_DISTRO: + type: string + required: true + description: 'ROS distribution codename:' + default: noetic + +permissions: + contents: read # to fetch code (actions/checkout) jobs: default: - strategy: - fail-fast: false - matrix: - distro: [noetic] - env: - ROS_DISTRO: ${{ matrix.distro }} + ROS_DISTRO: ${{ inputs.ROS_DISTRO }} PRERELEASE: true BASEDIR: ${{ github.workspace }}/.work - name: "${{ matrix.distro }}" + name: "${{ inputs.ROS_DISTRO }}" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ros-industrial/industrial_ci@master diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9e4c81ee..073cd032 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: # Standard hooks - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.4.0 + rev: v4.6.0 hooks: - id: check-added-large-files - id: check-case-conflict