Skip to content

Commit 0bdfe53

Browse files
authored
Add dry_run mode to release workflow (#7809)
1 parent 16f1d7e commit 0bdfe53

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
tags:
66
- "ccf-[567].*"
77
workflow_dispatch:
8+
inputs:
9+
dry_run:
10+
description: "Run the full pipeline without creating a GitHub release"
11+
type: boolean
12+
default: true
813

914
permissions: read-all
1015

@@ -40,6 +45,7 @@ jobs:
4045

4146
release_notes:
4247
name: Release Notes
48+
if: ${{ !inputs.dry_run }}
4349
runs-on: ubuntu-latest
4450
steps:
4551
- uses: actions/checkout@v6
@@ -89,7 +95,7 @@ jobs:
8995
9096
build_release:
9197
name: Build Release
92-
needs: [release_notes, image_digest]
98+
needs: image_digest
9399
runs-on:
94100
[
95101
self-hosted,
@@ -423,12 +429,14 @@ jobs:
423429
path: ${{ env.REPRO_DIR }}
424430

425431
create_release:
432+
if: ${{ !inputs.dry_run }}
426433
permissions:
427434
contents: write
428435
needs:
429436
- reproduce_rpm
430437
- test_rpm_against_app
431438
- build_release
439+
- release_notes
432440
- make_sbom
433441
name: Create Release
434442
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)