Skip to content

Commit

Permalink
Add an explicit action output value
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnorell committed Nov 21, 2024
1 parent bb10ffd commit 7a79231
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/actions/determine-tags/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,20 @@ inputs:
outputs:
image_tags:
description: "Comma-separated list of Docker image tags"
value: ${{ steps.image_tags.outputs.image_tags }}
runs:
using: "composite"
steps:
- name: Determine Image Tags
shell: bash
id: image_tags
run: |
# Capture inputs
CUSTOM_TAG="${{ inputs.custom_tag }}"
VERSION="${{ inputs.version }}"
BASE_IMAGE="${{ inputs.base_image }}"
BRANCH="${{ github.ref_name }}"
# Debugging output for inputs
echo "Inputs received: CUSTOM_TAG='$CUSTOM_TAG', VERSION='$VERSION', BASE_IMAGE='$BASE_IMAGE', BRANCH='$BRANCH'"
# Determine the tags
if [ -n "$CUSTOM_TAG" ]; then
IMAGE_TAGS="$BASE_IMAGE:$CUSTOM_TAG"
Expand Down

0 comments on commit 7a79231

Please sign in to comment.