chore(ci): improve docker-build action

This commit is contained in:
Matthias
2025-06-08 13:18:33 +02:00
parent 00fe02c854
commit 1c1a165ba4
2 changed files with 8 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ on:
type: string
permissions:
packages: write
contents: read
jobs:
deploy-docker:
@@ -37,9 +37,11 @@ jobs:
- name: Extract branch name
id: extract-branch
env:
BRANCH_NAME_INPUT: ${{ github.event.inputs.branch_name }}
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
BRANCH_NAME="${{ inputs.branch_name }}"
BRANCH_NAME="${BRANCH_NAME_INPUT}"
else
BRANCH_NAME="${GITHUB_REF##*/}"
fi
@@ -95,9 +97,11 @@ jobs:
- name: Extract branch name
id: extract-branch
env:
BRANCH_NAME_INPUT: ${{ github.event.inputs.branch_name }}
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
BRANCH_NAME="${{ inputs.branch_name }}"
BRANCH_NAME="${BRANCH_NAME_INPUT}"
else
BRANCH_NAME="${GITHUB_REF##*/}"
fi