Skip to content

Commit 8050ddd

Browse files
author
Raffael Herrmann
committed
Remove custom branch input, use GitHub's built-in branch selector
1 parent e6d21f7 commit 8050ddd

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/docker-build.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ name: Build and Push Docker Image
33
on:
44
workflow_dispatch:
55
inputs:
6-
branch:
7-
description: 'Branch to build from'
8-
required: true
9-
type: string
106
tag_as_latest:
117
description: 'Tag image as latest'
128
required: false
@@ -18,18 +14,16 @@ jobs:
1814
runs-on: ubuntu-latest
1915

2016
steps:
21-
- name: Checkout branch
17+
- name: Checkout
2218
uses: actions/checkout@v4
23-
with:
24-
ref: ${{ inputs.branch }}
2519

2620
- name: Get latest version tag
2721
id: get-tag
2822
run: |
2923
git fetch --tags
3024
LATEST_TAG=$(git tag | grep '^v[0-9]\+\.[0-9]\+\.[0-9]\+\(-rc\.[0-9]\+\)\?$' | sort -V | tail -1)
3125
if [ -z "$LATEST_TAG" ]; then
32-
echo "No version tags found on branch ${{ inputs.branch }}"
26+
echo "No version tags found"
3327
exit 1
3428
fi
3529
echo "tag=$LATEST_TAG" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)