Skip to content

Commit e4b7e59

Browse files
authored
Add sonic base image workflow (#252)
1 parent 0226641 commit e4b7e59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/base-image.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ jobs:
2323

2424
- name: Make tag
2525
run: |
26-
[ "${GITHUB_EVENT_NAME}" == 'workflow_dispatch' ] && echo "tag=${GITHUB_HEAD_REF##*/}" >> $GITHUB_ENV
26+
git fetch --tags
27+
echo "tag=$(git describe --tags --exact-match 2> /dev/null || git symbolic-ref -q --short HEAD || git rev-parse --short HEAD)" >> $GITHUB_ENV
2728
2829
- name: Set up Docker Buildx
2930
uses: docker/setup-buildx-action@v3

0 commit comments

Comments
 (0)