Skip to content

Commit 644db2c

Browse files
committed
.
1 parent 9346f49 commit 644db2c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/build-cmd.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,17 @@ jobs:
3939
name: Image Tag
4040
outputs:
4141
image_tag: ${{ steps.resolve.outputs.image_tag }}
42+
ref: ${{ steps.parse.outputs.ref }}
4243

4344
steps:
4445
- name: Parse Arguments
46+
id: parse
4547
run: |
4648
set -euo pipefail
4749
4850
if [[ "${{ inputs.origin }}" == "pull_request" ]]; then
4951
REF="refs/pull/${{ inputs.number }}/merge"
50-
BASE_TAG="pr-${{inputs.number}}-"
52+
BASE_TAG="pr-${{ inputs.number }}-"
5153
elif [[ "${{ inputs.origin }}" == "issue" ]]; then
5254
BRANCH=$(printf "%s" '${{ inputs.args }}' | jq -r ".[0]")
5355
@@ -63,9 +65,10 @@ jobs:
6365
BASE_TAG="ci-${BRANCH}-"
6466
fi
6567
66-
echo "REF=$REF" >> $GITHUB_ENV
6768
echo "BASE_TAG=$BASE_TAG" >> $GITHUB_ENV
6869
70+
echo "ref=$REF" >> "$GITHUB_OUTPUT"
71+
6972
- name: Login to Registry
7073
uses: docker/login-action@v3
7174
with:
@@ -135,6 +138,7 @@ jobs:
135138
latest=false
136139
tags: |
137140
type=raw,value=${{ needs.resolve-tag.outputs.image_tag }}
141+
ref: ${{ needs.resolve-tag.outputs.ref }}
138142
secrets:
139143
GH_PCKG_TOKEN: ${{ secrets.GH_PCKG_TOKEN }}
140144

0 commit comments

Comments
 (0)