mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2026-07-06 09:04:38 +00:00
fix: ensure create-release job is skipped in dry-run (workflow_call) mode
This commit is contained in:
parent
5602509099
commit
b3b266d824
7
.github/workflows/build-distribute.yml
vendored
7
.github/workflows/build-distribute.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue