Bilateral way
# Sets global environtment variables
env:
USER: ${{ github.actor }}
REPO: ${{ github.repository }}
OWNER: ${{ github.repository_owner }}
ACTOR: ${{ github.triggering_actor }}
jobs:
# Build job
github-pages:
if: github.event.workflow_run.conclusion == 'success'
runs-on: ${{github.actor != github.repository_owner && 'ubuntu-latest' || (
github.ref_name != 'main' && 'windows-latest' || 'self-hosted') }}