Actions: enable CI runs on pull requests after approval

This commit is contained in:
tiopex
2025-11-11 22:25:06 +01:00
parent f0a4dad1c2
commit e13a64671c

View File

@@ -11,10 +11,14 @@ on:
default: false
type: boolean
workflow_call:
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]
jobs:
set-envs:
if: (github.event_name != 'schedule') || (github.repository == 'ROCKNIX/distribution' && github.ref_name == 'next')
environment:
name: ${{ github.event_name == 'pull_request' && 'pr-approval' || 'auto' }}
runs-on: ubuntu-24.04
outputs:
NIGHTLY: ${{ github.event_name == 'workflow_dispatch' && inputs.release == true && 'no' || 'yes' }}