Use repository permissions and branch pushes for CI [skip ci]

This commit is contained in:
Andras Schmelczer 2026-11-11 21:38:30 +00:00
commit 2cba3d5249

View file

@ -2,12 +2,9 @@ name: lint
on:
push:
pull_request:
jobs:
ruff:
runs-on: ${{ (github.actor == 'renovate-bot' || github.event.pull_request.user.login == 'renovate-bot' || startsWith(github.ref, 'refs/heads/renovate/') || startsWith(github.head_ref,
'renovate/')) && 'renovate' || 'docker' }}
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
@ -25,5 +22,3 @@ jobs:
- name: Run lint.sh in check mode
run: ./lint.sh --check
if: ${{ contains(fromJSON('["andras","ruby336688","renovate-bot"]'), github.actor) && (!github.event.pull_request || contains(fromJSON('["andras","ruby336688","renovate-bot"]'),
github.event.pull_request.user.login)) }}