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: on:
push: push:
pull_request:
jobs: jobs:
ruff: 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, runs-on: docker
'renovate/')) && 'renovate' || 'docker' }}
container: container:
image: ghcr.io/catthehacker/ubuntu:act-latest image: ghcr.io/catthehacker/ubuntu:act-latest
steps: steps:
@ -25,5 +22,3 @@ jobs:
- name: Run lint.sh in check mode - name: Run lint.sh in check mode
run: ./lint.sh --check 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)) }}