use basename and dirname to split owner/repo

Co-authored-by: Seth Flynn <getchoo@tuta.io>
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers 2025-03-14 14:56:46 -07:00 committed by GitHub
parent b42b453f76
commit e8e81a7627
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,8 +34,8 @@ runs:
COLORS: ${{ inputs.colors }}
DEFAULT_COLOR: ${{ inputs.default-color }}
run: |
owner=$(echo "$REPOSITORY" | cut -d '/' -f 1)
repo=$(echo "$REPOSITORY" | cut -d '/' -f 2)
owner="$(dirname "$REPOSITORY")"
repo="$(basename "$REPOSITORY")"
query=$(
jq -nr \
--arg labels "$LABELS" \
@ -118,8 +118,8 @@ runs:
REPOSITORY: ${{ inputs.repository }}
ISSUES: ${{ inputs.issues }}
run: |
owner=$(echo "$REPOSITORY" | cut -d '/' -f 1)
repo=$(echo "$REPOSITORY" | cut -d '/' -f 2)
owner="$(dirname "$REPOSITORY")"
repo="$(basename "$REPOSITORY")"
query=$(
jq -nr \
--arg issues "$ISSUES" \