Skip to content

Commit

Permalink
Update workflows to use the properly versioned release
Browse files Browse the repository at this point in the history
  • Loading branch information
kronn committed Dec 22, 2023
1 parent 100b784 commit 796562c
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/nightly-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
uses: ./.github/workflows/prepare-release.yml
with:
stage: integration
release: integration
secrets: inherit

build:
Expand Down
55 changes: 50 additions & 5 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Prepare Release'
name: "Prepare properly versioned Release"

on:
workflow_dispatch: # Allow triggering manually
Expand All @@ -11,20 +11,65 @@ on:
options:
- integration
- production
release:
type: choice
description: "Type of Release: regular, patch or custom"
required: true
default: "regular"
options:
- regular
- patch
- custom
version:
type: string
description: "next version number, if Release is custom"
required: false
branch:
type: string
description: "Branch to be released"
required: false
default: "master"
dry_run:
type: boolean
description: "Only show commands, do not execute them"
required: false
default: false

workflow_call:
inputs:
stage:
type: string
description: "Stage of release to be prepared"
default: integration
required: true
release:
type: string
description: "Type of Release: regular, patch or custom"
required: true
default: "regular"
version:
type: string
description: "next version number, if Release is custom"
required: false
branch:
type: string
description: "Branch to be released"
required: false
default: "master"
dry_run:
type: boolean
description: "Only show commands, do not execute them"
required: false
default: false

jobs:
prepare_release:
uses: hitobito/hitobito/.github/workflows/prepare-version.yml@master
with:
composition: ${{ github.repository }}
next_version: patch
stage: ${{ inputs.stage }}
# target_branch: master
composition: ${{ github.repository }}
release_type: ${{ inputs.release }}
next_version: ${{ inputs.version }}
stage: ${{ inputs.stage }}
target_branch: ${{ inputs.branch }}
dry_run: ${{ inputs.dry_run }}
secrets: inherit

0 comments on commit 796562c

Please sign in to comment.