Skip to content

Commit

Permalink
chore(ci): use github.ref_name instead of a separate parameter in inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek committed Apr 23, 2024
1 parent d742d54 commit ab27c2e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
name: release
run-name: "Release ${{ format('{0} (type: {1}) (branch: {2})', inputs.tag, inputs.release_type, inputs.base) }} "
run-name: "Release ${{ format('{0} (type: {1}) (branch: {2})', inputs.tag, inputs.release_type, github.ref_name) }} "

on:
workflow_dispatch:
inputs:
tag:
description: The version to release (e.g. v1.2.3)
required: true
base:
description: The base branch from which to release and against which to create a release PR.
type: string
default: 'main'
required: false
latest:
description: Whether to tag this build latest
type: boolean
Expand All @@ -38,6 +33,6 @@ jobs:
image-name: ${{ vars.DOCKERHUB_IMAGE_NAME }}
latest: ${{ inputs.latest }}
tag: ${{ inputs.tag }}
base: ${{ inputs.base }}
base: ${{ github.ref_name }}
release-type: ${{ inputs.release_type }}
regenerate-manifests: true

0 comments on commit ab27c2e

Please sign in to comment.