Skip to content

Commit 921837a

Browse files
committed
chore(dependancy): Not finding file
1 parent 291579d commit 921837a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/reuseable-ci-checks.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,24 @@ jobs:
142142
steps:
143143
- name: Validate Branch Name
144144
run: |
145+
echo "📂 GITHUB_WORKSPACE is: $GITHUB_WORKSPACE"
146+
echo "📂 Current working directory is: $(pwd)"
147+
echo "📂 Listing files in current dir:"
148+
ls -alh
149+
echo "📂 Listing files in workspace root:"
150+
ls -alh "$GITHUB_WORKSPACE"
151+
145152
#BRANCH_NAME="${GITHUB_HEAD_REF}"
146153
BRANCH_NAME="${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}"
147154
echo "Validating branch name: $BRANCH_NAME"
148155
149156
# Read allowed branch patterns from .releaserc.json
150-
ALLOWED_BRANCHES=$(jq -r '.branches[].name' "$GITHUB_WORKSPACE/.releaserc.json")
157+
158+
159+
160+
RELEASERC_PATH="${{ github.workspace }}/.releaserc.json"
161+
echo "Using releaserc at: $RELEASERC_PATH"
162+
ALLOWED_BRANCHES=$(jq -r '.branches[].name' $RELEASERC_PATH)
151163

152164
VALID=false
153165
for pattern in $ALLOWED_BRANCHES; do

0 commit comments

Comments
 (0)