Skip to content

Commit dfe325a

Browse files
committed
fix: tags extraction to avoid breaking lines
1 parent 9485372 commit dfe325a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/on-tag-creation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Get the repository tags
3333
working-directory: ./tagaction
3434
run: |
35-
THIS_GIT_TAGS=$(git tag --sort -creatordate --column)
35+
THIS_GIT_TAGS=$(git tag --sort -creatordate | tr '\n' ' ')
3636
3737
echo "Git tags: ${THIS_GIT_TAGS}"
3838

README.org

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Since GitHub does not offer this feature, I decided to create it myself.
3434
fetch-depth: 0 # to get the tags
3535
- name: Get the repository tags
3636
run: |
37-
THIS_GIT_TAGS=$(git tag --sort -creatordate --column)
37+
THIS_GIT_TAGS=$(git tag --sort -creatordate | tr '\n' ' ')
3838

3939
echo "Git tags: ${THIS_GIT_TAGS}"
4040

@@ -103,7 +103,7 @@ use. For my examples, I use basically this approach:
103103
fetch-depth: 0 # to get the tags
104104
- name: Get the repository tags
105105
run: |
106-
THIS_GIT_TAGS=$(git tag --sort -creatordate --column)
106+
THIS_GIT_TAGS=$(git tag --sort -creatordate | tr '\n' ' ')
107107

108108
echo "Git tags: ${THIS_GIT_TAGS}"
109109

0 commit comments

Comments
 (0)