Run Renovate validation on isolated containers and retain trusted human CI [skip ci]
This commit is contained in:
parent
040edd5913
commit
50c45c4776
1 changed files with 10 additions and 5 deletions
|
|
@ -14,7 +14,8 @@ concurrency:
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
name: Build WebAssembly & deploy
|
name: Build WebAssembly & deploy
|
||||||
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' }}
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# Keep in sync with the version table in README.md.
|
# Keep in sync with the version table in README.md.
|
||||||
|
|
@ -23,6 +24,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262
|
- uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262
|
||||||
|
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
- name: Install cmake & friends
|
- name: Install cmake & friends
|
||||||
run: |
|
run: |
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
@ -71,12 +74,14 @@ jobs:
|
||||||
path: build-web/web
|
path: build-web/web
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
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)) }}
|
||||||
deploy-pages:
|
deploy-pages:
|
||||||
name: Deploy static site artifacts
|
name: Deploy static site artifacts
|
||||||
needs: deploy
|
needs: deploy
|
||||||
if: ${{ github.actor != 'renovate-bot' && !startsWith(github.ref, 'refs/heads/renovate/') && !startsWith(github.head_ref, 'renovate/') && ((github.event_name
|
if: ${{ contains(fromJSON('["andras","ruby336688","renovate-bot"]'), github.actor) && (!github.event.pull_request || contains(fromJSON('["andras","ruby336688","renovate-bot"]'),
|
||||||
== 'push' && github.ref == 'refs/heads/main')) }}
|
github.event.pull_request.user.login)) && (!(github.actor == 'renovate-bot' || github.event.pull_request.user.login == 'renovate-bot' || startsWith(github.ref,
|
||||||
|
'refs/heads/renovate/') || startsWith(github.head_ref, 'renovate/'))) && ((github.event_name == 'push' && github.ref == 'refs/heads/main')) }}
|
||||||
runs-on: pages
|
runs-on: pages
|
||||||
container:
|
container:
|
||||||
image: node:22-bookworm@sha256:63538dfe497cc29dfafdda25ada09b46db68a3f4cc205abf1f5d6bf0913f3384
|
image: node:22-bookworm@sha256:63538dfe497cc29dfafdda25ada09b46db68a3f4cc205abf1f5d6bf0913f3384
|
||||||
|
|
@ -93,7 +98,7 @@ jobs:
|
||||||
path: build-web/web
|
path: build-web/web
|
||||||
- name: Deploy to nginx pages mount
|
- name: Deploy to nginx pages mount
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
uses: https://git.schmelczer.dev/andras/ci-actions/deploy-pages@18419c79a58572be1bb3759b334f43306be44a29
|
uses: https://git.schmelczer.dev/andras/ci-actions/deploy-pages@c80f2f0701d7618f1f0b2bb52ebd332ea34b6e28
|
||||||
with:
|
with:
|
||||||
source: build-web/web
|
source: build-web/web
|
||||||
target: platform-game
|
target: platform-game
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue