diff --git a/.forgejo/workflows/lint.yml b/.forgejo/workflows/lint.yml index 5d8692a..e7d4539 100644 --- a/.forgejo/workflows/lint.yml +++ b/.forgejo/workflows/lint.yml @@ -6,12 +6,15 @@ on: jobs: 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: image: ghcr.io/catthehacker/ubuntu:act-latest steps: - uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262 + with: + persist-credentials: false - name: Install uv uses: https://github.com/astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 with: @@ -22,4 +25,5 @@ jobs: - name: Run lint.sh in check mode 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)) }}