Skip to content

Commit

Permalink
Fix get branch (last part from path) to correct behavior in case of d…
Browse files Browse the repository at this point in the history
…ifferent path lengths (#174)
  • Loading branch information
adeepn authored Aug 10, 2023
1 parent 06e8728 commit 6179555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runs:
- shell: bash
id: version
run: |
input=$(echo "${{ github.action_path }}" | cut -d"/" -f8 )
input=$(echo "${{ github.action_path }}" | rev | cut -d"/" -f1 | rev)
if [[ "${input}" == "master" ]] || [[ -z "${input}" ]]; then
input="latest"
fi
Expand Down

0 comments on commit 6179555

Please sign in to comment.