Run Renovate validation on isolated containers and retain trusted human CI [skip ci]
This commit is contained in:
parent
19eed67af0
commit
61815ddcae
1 changed files with 6 additions and 2 deletions
|
|
@ -6,12 +6,15 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ruff:
|
ruff:
|
||||||
runs-on: docker
|
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' }}
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/catthehacker/ubuntu:act-latest
|
image: ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262
|
- uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262
|
||||||
|
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
uses: https://github.com/astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86
|
uses: https://github.com/astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86
|
||||||
with:
|
with:
|
||||||
|
|
@ -22,4 +25,5 @@ jobs:
|
||||||
|
|
||||||
- name: Run lint.sh in check mode
|
- name: Run lint.sh in check mode
|
||||||
run: ./lint.sh --check
|
run: ./lint.sh --check
|
||||||
if: ${{ github.actor != 'renovate-bot' && !startsWith(github.ref, 'refs/heads/renovate/') && !startsWith(github.head_ref, 'renovate/') }}
|
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