Skip to content

Commit

Permalink
fix: make branch name matching strict (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
duskpoet authored Aug 22, 2023
1 parent 4b69e56 commit a4138cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ runs:
# Get the branch id by its name. We list all branches and filter by name
branch_id=$(neonctl branches list --project-id ${{ inputs.project_id }} -o json \
| jq -c '.[] | select(.name | contains("'${{ inputs.branch_name }}'")) .id' \
| jq -r)
| jq -r '.[] | select(.name == "${{ inputs.branch_name }}") | .id')
echo "branch exists, branch id: ${branch_id}\n" >> debug.log
Expand Down

0 comments on commit a4138cc

Please sign in to comment.