Skip to content

⬆️ Update GH Action and pre-commit checks #11

⬆️ Update GH Action and pre-commit checks

⬆️ Update GH Action and pre-commit checks #11

Workflow file for this run

# SPDX-FileCopyrightText: 2023 cusy GmbH
#
# SPDX-License-Identifier: BSD-3-Clause
name: prek
on:
pull_request:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
prek:
name: prek
# External pull requests should be checked, but not our own internal pull
# requests again, as these are already checked by the push on the branch.
# Without this if condition, the checks would be performed twice, as
# internal pull requests correspond to both the push and pull_request
# events.
if:
github.event_name == 'push' ||
github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: j178/prek-action@5337cb91e0fa35a7ff31b9ca345126d8bbbcdf16 # v2.0.6