Skip to content

👷🔧📝 Switch to prek #2

👷🔧📝 Switch to prek

👷🔧📝 Switch to prek #2

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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: j178/prek-action@e98a699c41eb69ab013a45817a0406469a748f8d # v2.0.5