From fe825d676f1340fac5316ef6d38153732f9cade9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20R=C3=B6hrich?= Date: Mon, 20 Nov 2023 13:58:49 +0100 Subject: [PATCH] ci: add linting to release workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lint changed files for simple mistakes like spelling and whitespace errors Signed-off-by: Moritz Röhrich --- .github/workflows/release.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2828baa..7f2f78b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -6,6 +6,25 @@ on: - "v*" jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Python + uses: actions/setup-python@v3 + + - name: Get changed files + id: changed + uses: tj-actions/changed-files@v40 + + - name: Run pre-commit Linters + uses: pre-commit/action@v3.0.0 + with: + extra_args: --files ${{ steps.changed.outputs.all_changed_files }} + + # Build the build-environment container, using it's workflow build-s3gw: runs-on: self-hosted