Skip to content

Commit

Permalink
fix: tags extraction to avoid breaking lines
Browse files Browse the repository at this point in the history
  • Loading branch information
64J0 committed Jun 20, 2024
1 parent 9485372 commit dfe325a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/on-tag-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Get the repository tags
working-directory: ./tagaction
run: |
THIS_GIT_TAGS=$(git tag --sort -creatordate --column)
THIS_GIT_TAGS=$(git tag --sort -creatordate | tr '\n' ' ')
echo "Git tags: ${THIS_GIT_TAGS}"

Expand Down
4 changes: 2 additions & 2 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Since GitHub does not offer this feature, I decided to create it myself.
fetch-depth: 0 # to get the tags
- name: Get the repository tags
run: |
THIS_GIT_TAGS=$(git tag --sort -creatordate --column)
THIS_GIT_TAGS=$(git tag --sort -creatordate | tr '\n' ' ')

echo "Git tags: ${THIS_GIT_TAGS}"

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

echo "Git tags: ${THIS_GIT_TAGS}"

Expand Down

0 comments on commit dfe325a

Please sign in to comment.