Skip to content

Commit

Permalink
Fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCS committed May 28, 2024
1 parent 85bc283 commit 4a7b61f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ jobs:
id: versioner
run: |
if [[ ${{ github.event_name }} == 'release' ]]; then
version="${github.ref##*/}"
version="${{ github.ref }}"
version="${version##*/}"
version="${version/[^0-9.]/}"
else
version="0.0.${{ github.run_number }}"
Expand Down

1 comment on commit 4a7b61f

@TAN-ON
Copy link

@TAN-ON TAN-ON commented on 4a7b61f May 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you're viewing a Git diff showing changes in a file named pipeline.yml located in the .github/workflows directory. Here's a breakdown of the changes:

  • Two lines were added.
  • One line was deleted.

Here's a summary of the changes:

  1. In the original file, the line number 37 was:

    version="${github.ref##*/}"
    

    In the changed file, this line was modified to:

    version="${version##*/}"
    

    This change seems to be a refinement in the way the version variable is assigned.

  2. Additionally, a line was added after the modified line:

    version="${version/[^0-9.]/}"
    

    This line appears to be stripping any characters from the version variable that are not numbers or dots.

So, the script is refining the way it extracts the version number from github.ref by removing non-numeric and non-dot characters.

Please sign in to comment.