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:
|
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)) }}
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue