fix: ensure create-release job is skipped in dry-run (workflow_call) mode

This commit is contained in:
copilot-swe-agent[bot] 2026-06-27 20:07:30 +00:00 committed by Andrew Walsh
parent 03d7f4b95d
commit 524be31ebc

View file

@ -6,6 +6,11 @@ on:
branches:
- dev-v2
workflow_call:
inputs:
create_release:
description: 'Create a GitHub release (disabled by default for dry-run/PR builds)'
default: false
type: boolean
permissions:
contents: write
id-token: write
@ -73,7 +78,7 @@ jobs:
create-release:
needs: build-and-release
runs-on: ubuntu-latest
if: success()
if: success() && (github.event_name != 'workflow_call' || inputs.create_release == true)
steps:
- name: Checkout
uses: actions/checkout@v4