Skip to content

Commit f079cd9

Browse files
committed
improvements
1 parent 6a87ec6 commit f079cd9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/release-tag-version.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ jobs:
108108
registry: ghcr.io
109109
username: ${{ github.repository_owner }}
110110
password: ${{ secrets.GITHUB_TOKEN }}
111+
- name: Get cleaned branch name
112+
id: clean_name
113+
run: |
114+
REF_NAME=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\/v//' -e 's/release\/v//')
115+
echo "Cleaned name is ${REF_NAME}"
116+
echo "branch=${REF_NAME}" >> "$GITHUB_OUTPUT"
111117
- name: build rootful docker image
112118
uses: docker/build-push-action@v5
113119
with:
@@ -155,6 +161,12 @@ jobs:
155161
registry: ghcr.io
156162
username: ${{ github.repository_owner }}
157163
password: ${{ secrets.GITHUB_TOKEN }}
164+
- name: Get cleaned branch name
165+
id: clean_name
166+
run: |
167+
REF_NAME=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\/v//' -e 's/release\/v//')
168+
echo "Cleaned name is ${REF_NAME}"
169+
echo "branch=${REF_NAME}" >> "$GITHUB_OUTPUT"
158170
- name: build rootless docker image
159171
uses: docker/build-push-action@v5
160172
with:

0 commit comments

Comments
 (0)