Use repository permissions and branch pushes for CI [skip ci]
This commit is contained in:
parent
61815ddcae
commit
2cba3d5249
1 changed files with 1 additions and 6 deletions
|
|
@ -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)) }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue